mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
headless-browser: Replace the log-slowest-tests flag with a verbose flag
Instead of adding a separate flag for each thing we want to log, let's just have a verbosity flag. We can add verbosity levels later if needed.
This commit is contained in:
parent
0ff91a5273
commit
d2306efaea
Notes:
github-actions[bot]
2024-11-11 15:55:51 +00:00
Author: https://github.com/trflynn89
Commit: d2306efaea
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2283
3 changed files with 3 additions and 3 deletions
|
@ -504,7 +504,7 @@ ErrorOr<void> run_tests(Core::AnonymousBuffer const& theme, Gfx::IntSize window_
|
|||
for (auto const& non_passing_test : non_passing_tests)
|
||||
outln("{}: {}", test_result_to_string(non_passing_test.result), non_passing_test.test.input_path);
|
||||
|
||||
if (app.log_slowest_tests) {
|
||||
if (app.verbose) {
|
||||
auto tests_to_print = min(10uz, tests.size());
|
||||
outln("\nSlowest {} tests:", tests_to_print);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue