Option --show-tests prints test description.

This commit is contained in:
Markus Kauppila 2011-08-28 20:27:25 +03:00
parent 877c391020
commit 103124ac9f
2 changed files with 3 additions and 2 deletions

View file

@ -142,7 +142,8 @@ void
PlainTestStarted(const char *testName, const char *suiteName,
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

View file

@ -1362,7 +1362,7 @@ main(int argc, char *argv[])
if(only_print_tests) {
TestCase *testItem = NULL;
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;