Commit 103124ac authored by Markus Kauppila's avatar Markus Kauppila

Option --show-tests prints test description.

parent 877c3910
...@@ -142,7 +142,8 @@ void ...@@ -142,7 +142,8 @@ void
PlainTestStarted(const char *testName, const char *suiteName, PlainTestStarted(const char *testName, const char *suiteName,
const char *testDescription, Uint64 execKey, time_t startTime) const char *testDescription, Uint64 execKey, time_t startTime)
{ {
Output(indentLevel++, "Executing test: %s (in %s). Exec key: %llX", testName, suiteName, execKey); Output(indentLevel, "Executing test: %s (in %s). Exec key: %llX", testName, suiteName, execKey);
Output(indentLevel++, "Test description: %s", testDescription);
} }
void void
......
...@@ -1362,7 +1362,7 @@ main(int argc, char *argv[]) ...@@ -1362,7 +1362,7 @@ main(int argc, char *argv[])
if(only_print_tests) { if(only_print_tests) {
TestCase *testItem = NULL; TestCase *testItem = NULL;
for(testItem = testCases; testItem; testItem = testItem->next) { for(testItem = testCases; testItem; testItem = testItem->next) {
printf("%s (in %s)\n", testItem->testName, testItem->suiteName); printf("%s (in %s) - %s\n", testItem->testName, testItem->suiteName, testItem->description);
} }
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment