Add more logging.
This commit is contained in:
@@ -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)});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user