4 \brief Implementation of the custom listener printing the time of test execution
7 #include <TestLib_Listener.h>
8 #include <cppunit/Test.h>
14 TestLib_Listener::TestLib_Listener()
21 TestLib_Listener::~TestLib_Listener()
26 \brief Clear the internal state of the listener
28 void TestLib_Listener::Clear()
33 Handler for test start
34 @param theTest the started tests
36 void TestLib_Listener::startTest( CppUnit::Test* theTest )
40 aName = theTest->getName();
42 std::cout << aName << "...";
46 Handler for test finish
47 @param theTest the finished tests
49 void TestLib_Listener::endTest( CppUnit::Test* theTest )
51 std::cout << std::endl;
55 Handler for test suite start
56 @param theTest the started test suite
58 void TestLib_Listener::startSuite( CppUnit::Test* theTest )
63 Handler for test suite finish
64 @param theTest the finished test suite
66 void TestLib_Listener::endSuite( CppUnit::Test* theTest )
71 Handler for test failure
72 @param theFailure the failure information
74 void TestLib_Listener::addFailure( const CppUnit::TestFailure& theFailure )