Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sabifa opened this issue Jun 17, 2020 · 1 comment
Closed
Labels
in commands Relates to commands (usually invoked from the command Palette) in flutter Relates to running Flutter apps in testing Relates to test execution of Dart/Flutter tests for end users is bug
Milestone

Comments

@sabifa
Copy link

sabifa commented Jun 17, 2020

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

@DanTup
Copy link
Member

DanTup commented Jun 17, 2020

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.

@DanTup DanTup added this to the v3.12.0 milestone Jun 17, 2020
@DanTup DanTup added in commands Relates to commands (usually invoked from the command Palette) in flutter Relates to running Flutter apps in testing Relates to test execution of Dart/Flutter tests for end users is bug labels Jun 17, 2020
@DanTup DanTup closed this as completed Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in commands Relates to commands (usually invoked from the command Palette) in flutter Relates to running Flutter apps in testing Relates to test execution of Dart/Flutter tests for end users is bug
Projects
None yet
Development

No branches or pull requests

2 participants