Description
When you run dart test
you have an interesting option to add -r failures-only
which, as the name suggests, prints only failing tests and the full count at the end.
For SDK tests we can't run with dart test
because it produces additional package_config.json
s that mess things up (hopefully Pub Workspaces will fix that). But in the meantime, I think we could at least add a parameter to defineReflectiveSuite
that allows us the same behaviour so that when you run the tests you don't need to parse a whole array of irrelevant tests for what you are fixing.
I was working on https://dart-review.googlesource.com/c/sdk/+/408140?tab=checks and this was the output for one of the bots https://ci.chromium.org/ui/p/dart/builders/try/analyzer-linux-release-try/85955/overview.
The tests for pkg\analyzer\test\src\summary\top_level_inference_test.dart
, for example, expect huge multiline texts and these take a bunch of space from the VS Code limit debug console line count and with all of the passing tests at the end, some of the relevant output was getting clipped.
CC @DanTup