test icon indicating copy to clipboard operation
test copied to clipboard

Add a --verbose mode and hide all prints/stdout/stderr from tests unless it is enabled

Open jakemac53 opened this issue 10 months ago • 2 comments

We would still capture these outputs and log it for failing tests.

Essentially the idea here is the test zone would override print to printOnError and also use IOOverrides to override stdout/stderr to do a similar thing.

This might be too breaking, but would help with issues where passing tests produce noisy output which ends up making it hard to find the actual failed tests.

jakemac53 avatar Mar 19 '25 16:03 jakemac53

This also seems in some ways related to https://github.com/dart-lang/test/issues/1749 (in that both solutions may involve IOOverrides), so it may make sense to tackle them together,

DanTup avatar Mar 25 '25 15:03 DanTup

I have a question about this and https://github.com/dart-lang/test/issues/829. Is it intended that -r failures-only shows print output too? It feels a bit off considering the name. If it is not intended, I can open a new issue for this if you want.

FMorschel avatar Mar 25 '25 15:03 FMorschel