Skip to content

Dart: Run All Tests does not run all tests after VSCode update to 1.46.0 #2565

Closed

Description

@sabifa

Problem

After VSCode updated to 1.46.0 the command Dart: Run All Tests only runs a portion of my tests and not all of them.
As you can see on the screenshot only three test suites are run, although there are nine test files inside my project.
Problem Screenshot

It looks like it does not find every test file inside the project, but the tests inside the found test files are all being executed.

Reproduction

  1. Create a new project
  2. Copy the existing test inside widget_test multiple times
  3. Create a few duplicates of widget_test.dart (e.g. widget_2_test.dart)
  4. Run Dart: Run All Tests

Logs

Dart-Code-Log-2020-05-03 10-45-37.txt

Activity

  1. DanTup commented on Jun 17, 2020

    @DanTup
    Member

    It turns out much more than just this command is broken. They're all losing the noDebug flag, which causes them to try and run in debug mode (which isn't supported for flutter test with multiple files). I've opened #2566 to track this, though I believe the issue is a regression in VS Code which I've filed at microsoft/vscode#100364.

    However this specific issue is fixed as a result of the fix for #2082, which is now triggered by the*Dart: Run All Tests** command as well as running from launch.json.

  2. added this to the v3.12.0 milestone on Jun 17, 2020
  3. added
    in commandsRelates to commands (usually invoked from the command Palette)
    in flutterRelates to running Flutter apps
    in testingRelates to test execution of Dart/Flutter tests for end users
    on Jun 17, 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 commandsRelates to commands (usually invoked from the command Palette)in flutterRelates to running Flutter appsin testingRelates to test execution of Dart/Flutter tests for end usersis bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions