Test suite base class. More...
Test suite base class.
Should not be instantiated directly. To customize a test suite with custom set_up and tear down methods, inherit from this class and override set_up() and/or tear_down(). They will before / after every test.
Definition at line 83 of file cppunit_base.hpp.
#include <cppunit_base.hpp>
Public Member Functions | |
| virtual void | set_up () | 
| method to run before each test   | |
| virtual void | tear_down () | 
| method to run after each test   | |
| virtual const char * | get_name () const | 
| get the name of the test suite   | |
| virtual void | run () | 
| Run all tests in the suite.   | |
| void | addTest (test *test) | 
| Run all tests in the suite.   | |
Protected Attributes | |
| bool | suc = true | 
| Indicates success of all tests after running the suite.   | |
| std::array< test *, CPPUNIT_SUITE_CNT > | tests {} | 
| array of tests to run   | |
      
  | 
  inline | 
Run all tests in the suite.
Definition at line 120 of file cppunit_base.hpp.
      
  | 
  inlinevirtual | 
      
  | 
  inlinevirtual | 
Run all tests in the suite.
Definition at line 108 of file cppunit_base.hpp.
      
  | 
  inlinevirtual | 
method to run before each test
Definition at line 91 of file cppunit_base.hpp.
      
  | 
  inlinevirtual | 
method to run after each test
Definition at line 96 of file cppunit_base.hpp.
      
  | 
  protected | 
Indicates success of all tests after running the suite.
Definition at line 85 of file cppunit_base.hpp.
      
  | 
  protected | 
array of tests to run
Definition at line 86 of file cppunit_base.hpp.