when I build and run a cpputest I get output like:
TEST(MYTEST, TEST_CASE_1) - 0 ms
TEST(MYTEST, TEST_CASE_2) - 0 ms
TEST(MYTEST, TEST_CASE_3) - 0 ms
This is by specifying the command line argument -v (verbose) Is there a way to put more information within the output. I would like for each Unit Test case to have a specific ID, like:
TEST(MYTEST, TEST_CASE_1) - 0 ms - ID:001
TEST(MYTEST, TEST_CASE_2) - 0 ms - ID:002
TEST(MYTEST, TEST_CASE_3) - 0 ms - ID:003
I found the UT_PRINT() macro but it outputs the complete path to the Unit test file with the line number. This ID Number I would to output later to .xml file using
-ojunit
command.
Any idea?