mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
UnitTestRunner: Improve tests status reporting
This commit is contained in:
parent
c52a049698
commit
0adbfee99d
2 changed files with 28 additions and 5 deletions
|
|
@ -194,6 +194,11 @@ bool UnitTestRunner::shouldAbortTests()
|
|||
return false;
|
||||
}
|
||||
|
||||
static String getTestNameString (const String& testName, const String& subCategory)
|
||||
{
|
||||
return testName + " / " + subCategory;
|
||||
}
|
||||
|
||||
void UnitTestRunner::beginNewTest (UnitTest* const test, const String& subCategory)
|
||||
{
|
||||
endTest();
|
||||
|
|
@ -203,7 +208,7 @@ void UnitTestRunner::beginNewTest (UnitTest* const test, const String& subCatego
|
|||
results.add (new TestResult (testName, subCategory));
|
||||
|
||||
logMessage ("-----------------------------------------------------------------");
|
||||
logMessage ("Starting test: " + testName + " / " + subCategory + "...");
|
||||
logMessage ("Starting tests in: " + getTestNameString (testName, subCategory) + "...");
|
||||
|
||||
resultsUpdated();
|
||||
}
|
||||
|
|
@ -226,7 +231,7 @@ void UnitTestRunner::endTest()
|
|||
}
|
||||
else
|
||||
{
|
||||
logMessage ("All tests completed successfully");
|
||||
logMessage ("Completed tests in " + getTestNameString (r->unitTestName, r->subcategoryName));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue