Start working on build system.
This commit is contained in:
parent
4b308f6c32
commit
521486be62
88 changed files with 1065 additions and 349 deletions
|
@ -1,7 +1,7 @@
|
|||
#include "TestCaseRunner.h"
|
||||
|
||||
#include "FileLogger.h"
|
||||
#include "ConsoleLogger.h"
|
||||
#include "Logger.h"
|
||||
//#include "TestUiApplication.h"
|
||||
|
||||
bool TestCaseRunner::sLastTestFailed = false;
|
||||
|
@ -66,22 +66,22 @@ bool TestCaseRunner::run(const Vector<String>& args)
|
|||
}
|
||||
|
||||
sLastTestFailed = false;
|
||||
ConsoleLogger::logLine("TestFramework: Running Test - %s", test_case->getName().raw());
|
||||
LOG_INFO("TestFramework: Running Test - " << test_case->getName());
|
||||
test_case->run();
|
||||
|
||||
if (sLastTestFailed)
|
||||
{
|
||||
ConsoleLogger::logLine("Failed at line %s", sFailureLine.raw());
|
||||
LOG_INFO("Failed at line: " << sFailureLine);
|
||||
mFailingTests.push_back(test_case->getName());
|
||||
}
|
||||
}
|
||||
|
||||
if (mFailingTests.size() > 0)
|
||||
{
|
||||
ConsoleLogger::logLine("%d failing tests", mFailingTests.size());
|
||||
LOG_INFO(String::fmt("%d failing tests", mFailingTests.size()));
|
||||
for(const auto& name : mFailingTests)
|
||||
{
|
||||
ConsoleLogger::logLine(name);
|
||||
LOG_INFO(name);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,8 @@ struct Holder
|
|||
if(!bool(predicate)) \
|
||||
{ \
|
||||
const auto msg = String::to_string(__LINE__) + String(" with check: '") + String(#predicate) + String("'"); \
|
||||
TestCaseRunner::getInstance().markTestFailure(msg); \
|
||||
TestCaseRunner::getInstance().markTestFailure(msg); \
|
||||
return; \
|
||||
} \
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue