Add more logging.

This commit is contained in:
2021-08-26 19:24:35 +02:00
parent d11722efdd
commit 91ca6038d3
2 changed files with 13 additions and 1 deletions

View File

@@ -19,6 +19,11 @@ public:
auto meta = AngelscriptMetadata(m);
if (meta.GetIdentifier() == "Test"_cnc) {
auto name = meta.GetParameter("name"_cnc);
if (_tests.Has(name)) {
std::cout << termcolor::red << "Duplicate test name: '" << name << "'." << termcolor::reset
<< std::endl;
continue;
}
_tests.GetStdMap().insert({name, std::make_unique<Test>(name, func)});
}
}