Run an individual unit test

This commit is contained in:
Vinnie Falco
2013-07-17 10:28:28 -07:00
parent 23e4bc4f9a
commit 312b7352b2
14 changed files with 9 additions and 31 deletions

View File

@@ -182,9 +182,9 @@ void UnitTests::beginNewTest (UnitTest* const test, const String& subCategory)
r->passes = 0;
r->failures = 0;
logMessage ("Test: " + r->unitTestName + "/" + subCategory + "...");
logMessage ("Test '" + r->unitTestName + "': " + subCategory);
resultsUpdated();
resultsUpdated ();
}
void UnitTests::endTest()
@@ -241,8 +241,8 @@ void UnitTests::addFail (const String& failureMessage)
r->failures++;
String message ("!!! Test ");
message << (r->failures + r->passes) << " failed";
String message ("Failure, #");
message << (r->failures + r->passes);
if (failureMessage.isNotEmpty())
message << ": " << failureMessage;