Minor display tweaks
This commit is contained in:
parent
1e36f8f5e3
commit
86fae313ba
|
@ -58,6 +58,7 @@ public:
|
||||||
|
|
||||||
auto totalTests = successfulTests + failedTests;
|
auto totalTests = successfulTests + failedTests;
|
||||||
auto digitWidth = std::log10(std::max(totalTests, totalRequirements)) + 2;
|
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 << "=====================================================================";
|
std::cout << termcolor::blue << "=====================================================================";
|
||||||
for (int i = 0; i < digitWidth; ++i) {
|
for (int i = 0; i < digitWidth; ++i) {
|
||||||
std::cout << "===";
|
std::cout << "===";
|
||||||
|
@ -86,10 +87,11 @@ public:
|
||||||
std::cout << termcolor::red;
|
std::cout << termcolor::red;
|
||||||
}
|
}
|
||||||
std::cout << std::setw(14) << "Failed:" << std::setw(digitWidth) << failed << termcolor::reset;
|
std::cout << std::setw(14) << "Failed:" << std::setw(digitWidth) << failed << termcolor::reset;
|
||||||
|
std::cout << std::setw(3) << "|";
|
||||||
if (skipped.has_value()) {
|
if (skipped.has_value()) {
|
||||||
std::cout << std::setw(3) << "|" << std::setw(14) << "Skipped:" << std::setw(digitWidth) << skipped.value()
|
std::cout << std::setw(14) << "Skipped:" << std::setw(digitWidth) << skipped.value();
|
||||||
<< std::endl;
|
|
||||||
}
|
}
|
||||||
|
std::cout << std::endl;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue