Skip to content

Commit

Permalink
[ALCA-DB] Applying code checks/format
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Oct 3, 2024
1 parent 6f0c989 commit 42fbe13
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,22 @@
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/CompilerOutputter.h>
// #include <cppunit/TextTestProgressListener.h>
#include <cppunit/BriefTestProgressListener.h>
#include <cppunit/BriefTestProgressListener.h>

/**
* Main function used to run all tests.
* We are not using the one in #include <Utilities/Testing/interface/CppUnit_testdriver.icpp>
* because we use the BriefTestProgressListener to output the name of each test.
*/

int main( int argc, char* argv[] )
{
int main(int argc, char* argv[]) {
std::string testPath = (argc > 1) ? std::string(argv[1]) : "";
CppUnit::TextUi::TestRunner runner;
CppUnit::TestFactoryRegistry &registry = CppUnit::TestFactoryRegistry::getRegistry();
runner.addTest( registry.makeTest() );
CppUnit::TestFactoryRegistry& registry = CppUnit::TestFactoryRegistry::getRegistry();
runner.addTest(registry.makeTest());

// Outputs the name of each test when it is executed.
CppUnit::BriefTestProgressListener progress;
runner.eventManager().addListener( &progress );
runner.eventManager().addListener(&progress);
runner.run();
}


0 comments on commit 42fbe13

Please sign in to comment.