Salome HOME
custom listener for automatic tests
[modules/hydro.git] / src / HYDRO_tests / TestLib_Listener.h
1
2 /**
3   @file
4   \brief Declaration of the custom listener printing the time of test execution
5 */
6
7 #pragma once
8
9 #include <cppunit/TestListener.h>
10
11 /**
12   \class TestLib_Listener
13   \brief Implementation of the custom listener printing the time of test execution
14 */
15 class TestLib_Listener : public CppUnit::TestListener
16 {
17 public:
18   TestLib_Listener();
19   virtual ~TestLib_Listener();
20
21   void Clear();
22
23   virtual void startTest( CppUnit::Test* );
24   virtual void endTest( CppUnit::Test* );
25
26   virtual void startSuite( CppUnit::Test* );
27   virtual void endSuite( CppUnit::Test* );
28
29   virtual void addFailure( const CppUnit::TestFailure& );
30 };
31