Minor display tweaks

This commit is contained in:
Deukhoofd 2021-08-25 18:17:42 +02:00
parent 1e36f8f5e3
commit 86fae313ba
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 4 additions and 2 deletions

View File

@ -58,6 +58,7 @@ public:
auto totalTests = successfulTests + failedTests;
auto digitWidth = std::log10(std::max(totalTests, totalRequirements)) + 2;
std::cout << "Running tests in library folder: " << std::filesystem::current_path().stem() << std::endl;
std::cout << termcolor::blue << "=====================================================================";
for (int i = 0; i < digitWidth; ++i) {
std::cout << "===";
@ -86,10 +87,11 @@ public:
std::cout << termcolor::red;
}
std::cout << std::setw(14) << "Failed:" << std::setw(digitWidth) << failed << termcolor::reset;
std::cout << std::setw(3) << "|";
if (skipped.has_value()) {
std::cout << std::setw(3) << "|" << std::setw(14) << "Skipped:" << std::setw(digitWidth) << skipped.value()
<< std::endl;
std::cout << std::setw(14) << "Skipped:" << std::setw(digitWidth) << skipped.value();
}
std::cout << std::endl;
}
};