class
UnitTestPrintContents
Base classes
- class tk::Print
Constructors, destructors, conversion operators
- UnitTestPrint(const std::string& screen = {}, std::ostream& str = std::clog, std::ios_base::openmode mode = std::ios_base::out, std::ostream& qstr = std::cout) explicit
Public functions
Function documentation
unittest:: UnitTestPrint:: UnitTestPrint(const std::string& screen = {},
std::ostream& str = std::clog,
std::ios_base::openmode mode = std::ios_base::out,
std::ostream& qstr = std::cout) explicit
Parameters | |
---|---|
screen in | Screen output filename |
str in/out | Verbose stream |
mode in | Open mode for screen output file, see http://en.cppreference.com/w/cpp/io/ios_ |
qstr in/out | Quiet stream |
Constructor
void unittest:: UnitTestPrint:: unithead(const std::string& t,
const std::string& group) const
Parameters | |
---|---|
t in | Section title |
group in | String attempting to match unit test groups |
Print unit tests header (with legend)
void unittest:: UnitTestPrint:: test(std::size_t ncomplete,
std::size_t nfail,
const std::vector<std::string>& status)
Print one-liner info for test
Columns: [done/failed]
- done: number of tests completed so far
- failed: number of failed tests so far name of the test group name of the test result (with additional info if failed) Assumed fields for status:
- status[0]: test group name
- status[1]: test name
- status[2]: result (tut::test_result::result_type as string)
- status[3]: exception message for failed test
- status[4]: exception type id for failed test