refactor: test result output issues

This commit is contained in:
light7734 2025-07-16 13:18:08 +03:30
parent 61c898f47f
commit f457e5ae19
Signed by: light7734
GPG key ID: 8C30176798F1A6BA

View file

@ -46,10 +46,10 @@ public:
test(); test();
} }
std::cout << "_________________________[TEST RESULTS]_________________________"; std::cout << "_________________________[TEST RESULTS]_________________________\n";
std::cout << "Ran " << instance().m_failed_count + instance().m_pasesed_count << " tests:\n" std::cout << "Ran " << instance().m_failed_count + instance().m_pasesed_count << " tests:\n"
<< "Passed: " << instance().m_pasesed_count << '\n' << "\tpassed: " << instance().m_pasesed_count << '\n'
<< "Failed: " << instance().m_failed_count << '\n'; << "\tfailed: " << instance().m_failed_count << '\n';
return instance().m_failed_count; return instance().m_failed_count;
} }
@ -100,6 +100,7 @@ struct Case
return; // TODO(Light): Should we run the remaining tests after a failure? return; // TODO(Light): Should we run the remaining tests after a failure?
} }
details::Registry::increment_passed_count();
std::cout << " --> SUCCESS :D" << "\n"; std::cout << " --> SUCCESS :D" << "\n";
} }