|
Jon Test
C++ Unit Test Tool. Not for production -- sample code only
|
Interface for logging events while running tests. More...
#include <Logger.h>


Public Member Functions | |
| virtual | ~Logger () |
| Destructor – does nothing. | |
| virtual void | start ()=0 |
| Start of all testing. | |
| virtual void | startSuite (const std::string &suiteName)=0 |
| Start of test suite. | |
| virtual void | startCase (const std::string &suiteName, const std::string &caseName)=0 |
| Start of test case. | |
| virtual void | errorCase (const std::string &suiteName, const std::string &caseName, const std::string &casePart, const std::string &message)=0 |
| Unexpected error occurred during a part of the test case. | |
| virtual void | failCase (const std::string &suiteName, const std::string &caseName, const std::string &casePart, const TestFailure &failure)=0 |
| Test failure occurred during a part of the case. | |
| virtual void | exceptionCase (const std::string &suiteName, const std::string &caseName, const std::string &casePart, const std::exception &unexpected)=0 |
| Unexpected exception occurred during a part of the case. | |
| virtual void | endCase (const std::string &suiteName, const std::string &caseName, const bool pass)=0 |
| End of test case, with record pass or fail. | |
| virtual void | endSuite (const std::string &suiteName, const Count &count)=0 |
| End of test suite, with count of tests run and failed for that suite alone. | |
| virtual void | end (const Count &count)=0 |
| End of all testing, suitable to output. | |
|
virtual |
Destructor – does nothing.
Definition at line 11 of file Logger.cpp.
End of all testing, suitable to output.
| count | Count of Test Cases run, and Test Cases failed |
Implemented in JonTest::StreamLogger.
|
pure virtual |
End of test case, with record pass or fail.
| suiteName | Name of test suite |
| caseName | Name of test case |
| pass | true if passed, false if failed |
Implemented in JonTest::StreamLogger.
|
pure virtual |
End of test suite, with count of tests run and failed for that suite alone.
| suiteName | Name of test suite |
| count | Count of tests run and failed in this suite |
Implemented in JonTest::StreamLogger.
|
pure virtual |
Unexpected error occurred during a part of the test case.
| suiteName | Name of test suite |
| caseName | Name of test case |
| casePart | Part of the test case: setup, case, or teardown |
| message | Error message |
Implemented in JonTest::StreamLogger.
|
pure virtual |
Unexpected exception occurred during a part of the case.
| suiteName | Name of test suite |
| caseName | Name of test case |
| casePart | Part of the test case: setup, case, or teardown |
| unexpected | Unexpected exception |
Implemented in JonTest::StreamLogger.
|
pure virtual |
Test failure occurred during a part of the case.
| suiteName | Name of test suite |
| caseName | Name of test case |
| casePart | Part of the test case: setup, case, or teardown |
| failure | TestFailure as recorded |
Implemented in JonTest::StreamLogger.
Start of all testing.
Implemented in JonTest::StreamLogger.
|
pure virtual |
Start of test case.
| suiteName | Name of test suite |
| caseName | Name of test case |
Implemented in JonTest::StreamLogger.