Slightly better overall tests result reporting
This commit is contained in:
parent
0944797a3e
commit
bbd15c5942
1 changed files with 2 additions and 1 deletions
|
|
@ -141,7 +141,8 @@ int main(int argc, char ** argv)
|
||||||
auto all_end = clock::now();
|
auto all_end = clock::now();
|
||||||
|
|
||||||
std::cout << std::endl;
|
std::cout << std::endl;
|
||||||
std::cout << success << '/' << test_count << " passed (" << psemek::util::pretty(all_end - all_start, std::chrono::milliseconds{1}) << ")" << std::endl;
|
std::cout << (success == test_count ? "Success: " : "Failure: ") << success << '/' << test_count << " passed ("
|
||||||
|
<< psemek::util::pretty(all_end - all_start, std::chrono::milliseconds{1}) << ")" << std::endl;
|
||||||
|
|
||||||
if (success <= test_count)
|
if (success <= test_count)
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue