❯ cargo run -q -- self-test
❯ cargo run -q -- self-test -v
1..11
ok 1 pkg.test_decide_curl
ok 2 pkg.test_decide_faked_browser
ok 3 pkg.test_decide_known_bot
ok 4 pkg.test_decide_poisoned_url
ok 5 pkg.test_ipprefix
ok 6 pkg.test_maxmind_default
ok 7 pkg.test_output
ok 8 pkg.test_regex_default
ok 9 pkg.test_report
ok 10 pkg.text_secchua
ok 11 pkg.text_secchua_default
Why did I need this? Because one of the benchmarks I run is the test suite, and running the test suite thousands of times generates a lot of useless output when it is verbose by default.
With quiet tests, the performance is up by 30% too. But the best thing is that the logs are useful now, because only the Criterion progress is shown, and errors - no noise.
Bwaahahaha.