Skip to content

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

@sabifa

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

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