Skip to content

Add a "fast fail" argument to flutter test to stop after a failure #124406

@sayadzad

Description

@sayadzad

Use case

Tests may take an hour or more to run, especially in a CI environment with limited resources. If there was an argument for flutter test (similar to pytest's --exitfirst), then a failure that happens within the first 10 minutes, etc. can stop further test execution. This can allow developers to fix tests and re-run them locally, saving a lot of time and money in a CI.

Proposal

Add an argument such as flutter test --exit-first that will stop further text execution when a failure is hit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: tests"flutter test", flutter_test, or one of our testsframeworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions