Skip to content

Ability to run all failed tests #2357

Closed

Description

@HerrNiklasRaab

Most of the time you don't want to run all the tests, most of the time you only want to rerun test who are failed previously.

Something similar was also mentioned here: dart-lang/test#329

Activity

  1. DanTup commented on Apr 15, 2020

    @DanTup
    Member

    It's not currently possible. In theory we could get a list of tests and run each of them, but I don't think we can run a multiple tests in one go through package:test, so it might end up being much slower (as it'd have to run each one in its own debug session).

    I'll keep an eye on that issue so if there are changes that would help support this, we can use them.

  2. added this to the Backlog milestone on Apr 15, 2020
  3. added
    in testingRelates to test execution of Dart/Flutter tests for end users
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    on Apr 15, 2020
  4. HerrNiklasRaab commented on Sep 25, 2020

    @HerrNiklasRaab
    Author

    What exactly is the blocker on this?

  5. modified the milestones: Backlog, v3.16.0 on Sep 28, 2020
  6. DanTup commented on Sep 28, 2020

    @DanTup
    Member

    The issue was running a subset of tests from a suite in one go (without spawning lots of debug sessions). Running pub run test --name foo --name bar would require tests to match both foo and bar to run.

    However, I think I found a way to handle this by combining them into a single regex like --name ^foo$|^bar$. I was able to make a command on the context menu for a suite that can re-run the failed tests there.

    It won't be ready for the upcoming release, but I'll see if I can finish this off (it needs tests, and a way to run for all suites) for the next release. I'll ping you with a test build once it's done if you want to try it out.

  7. changed the title [-]Is there an option to run all failed tests?[/-] [+]Ability to run all failed tests[/+] on Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in testingRelates to test execution of Dart/Flutter tests for end usersis enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions