mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
refactor: Clean up test logging to make it easier to search (#5396)
This PR replaces the word `failed` with `failure` in any test names and renames some test files to fix MSVC warnings, so that it is easier to search through the test output to find tests that failed.
This commit is contained in:
@@ -577,6 +577,16 @@ multi_runner_child::on_suite_begin(beast::unit_test::suite_info const& info)
|
||||
void
|
||||
multi_runner_child::on_suite_end()
|
||||
{
|
||||
if (print_log_ || suite_results_.failed > 0)
|
||||
{
|
||||
std::stringstream s;
|
||||
if (num_jobs_ > 1)
|
||||
s << job_index_ << "> ";
|
||||
s << (suite_results_.failed > 0 ? "failed: " : "")
|
||||
<< suite_results_.name << " had " << suite_results_.failed
|
||||
<< " failures." << std::endl;
|
||||
message_queue_send(MessageType::log, s.str());
|
||||
}
|
||||
results_.add(suite_results_);
|
||||
message_queue_send(MessageType::test_end, suite_results_.name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user