Example #1
0
void TestRegistry::run (TestResult& result) 
{
	result.startTests();
	for ( std::vector<Test *>::iterator it = tests.begin (); it != tests.end (); ++it )
		(*it)->run(result);
	result.endTests();
}
Example #2
0
void TestRegistry::run (TestResult& result) {
	result.startTests ();
	for (std::vector<Test *>::iterator it = tests.begin (); it != tests.end (); ++it){
		printf("[TEST-RUN]\t\t<SUITE>%s\t\t<TEST>%s\n",(*it)->test_namespace.c_str(),(*it)->test_name.c_str());
		(*it)->run (result);

	}
	result.endTests ();
}
Example #3
0
void TestRegistry::run (TestResult& result) {
  result.startTests ();
  std::cout << std::endl;
  for (std::vector<Test *>::iterator it = tests.begin (); it != tests.end (); ++it) {
    (*it)->run (result);
    std::cout << ".";
  }
  std::cout << std::endl << std::endl;
  result.endTests ();
}
Example #4
0
void TestRegistry::run ( const std::string& _testName, TestResult& result ) 
{
	result.startTests();
    std::string test_name_on = _testName + "_on";
	for ( std::vector<Test *>::iterator it = tests.begin (); it != tests.end (); ++it )
    {
        if ( (*it)->name == test_name_on )
            (*it)->run(result);
    }
	result.endTests();
}