dodo
0.0.1
A C++ library to create containerized Linux services
|
23 #ifndef common_unittest_hpp
24 #define common_unittest_hpp
43 UnitTest(
const std::string &name,
const std::string &description, std::ostream *out );
61 virtual void doRun() = 0;
70 bool writeSubTestResult(
const std::string &name,
const std::string& description,
bool passed );
virtual ~UnitTest()
Destructor.
virtual void doRun()=0
Virtual to implement the test.
std::string name_
The test name.
size_t failed_
The total number of failed tests.
void writeUnitTestHeader()
Write the header.
Unit test assitence class.
Common and utility interfaces.
bool writeSubTestResult(const std::string &name, const std::string &description, bool passed)
Write the subtest result.
size_t total_
The total number of tests.
std::string description_
The test description.
UnitTest(const std::string &name, const std::string &description, std::ostream *out)
Create a test.
void writeUnitTestSummary()
Write the summary.
std::ostream * out_
The output destination.