How to change the output of cppunit from points, indicating how many tests are performed for the actual test names, or maybe at least the line provided to the test subscriber, how the points are counted and guessing which test function it represents is quite unproductive in case of an error segmentation, which actually kills the entire program. I just found a link to change the error output in case of a failed statement, but nothing in the overall output.
The set function of my test class:
static CppUnit::Test *suite() { CppUnit::TestSuite *suiteOfTests = new CppUnit::TestSuite( "Map Parser" ); //string to state suiteOfTests->addTest( new CppUnit::TestCaller<Parser_test>("string to state I",&Parser_test::test_string_to_state_I)); .... return suiteOfTests; }
main.cpp
CppUnit::TextUi::TestRunner runner; runner.addTest( Parser_test::suite() ); runner.run();
I would like to get this conclusion:
string to state I : OK string to state II : OK ...
since then I can determine when the program crashed due to an unresponsive exception like SegFault.
But for now, my Ouptut looks like this:
........... Segmentation fault
source share