headless-browser: Do not log skipped tests by default

We now skip so many tests that the list of skipped tests exceeds the
height of my terminal. Let's skip logging these by default, as it is
too noisy to find actually relevant information.
This commit is contained in:
Timothy Flynn 2024-11-11 07:55:59 -05:00 committed by Andreas Kling
parent d2306efaea
commit aa0811d24e
Notes: github-actions[bot] 2024-11-11 15:55:45 +00:00

View file

@ -501,8 +501,12 @@ ErrorOr<void> run_tests(Core::AnonymousBuffer const& theme, Gfx::IntSize window_
outln("Pass: {}, Fail: {}, Skipped: {}, Timeout: {}", pass_count, fail_count, skipped_count, timeout_count);
outln("==================================================");
for (auto const& non_passing_test : non_passing_tests)
for (auto const& non_passing_test : non_passing_tests) {
if (non_passing_test.result == TestResult::Skipped && !app.verbose)
continue;
outln("{}: {}", test_result_to_string(non_passing_test.result), non_passing_test.test.input_path);
}
if (app.verbose) {
auto tests_to_print = min(10uz, tests.size());