Skip to content

Add failuresOnly to defineReflectiveSuite #60069

Open
@FMorschel

Description

@FMorschel

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.jsons 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestanalyzer-testarea-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions