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

The coverage output json files are not placed in specified directory #2173

Open
osaxma opened this issue Jan 17, 2024 · 1 comment
Open

The coverage output json files are not placed in specified directory #2173

osaxma opened this issue Jan 17, 2024 · 1 comment

Comments

@osaxma
Copy link

osaxma commented Jan 17, 2024

This command generates the json output under /path/to/project/coverage/test/....:

dart run test:test --coverage=coverage

Whereas, this command generates the .dart.vm.json under /path/to/project/test/ (i.e. next to each test file):

dart run test:test --coverage=coverage /path/to/project/test

I have tried to use --coverage=/path/to/project/coverage but the same thing happen.

In both cases, the coverage directory is created, but the json files are not placed in the provided coverage directory when a path is provided.


test version: 1.25.1
Dart SDK version: 3.2.3 (stable) (Tue Dec 5 17:58:33 2023 +0000) on "macos_x64"

@osaxma
Copy link
Author

osaxma commented Jan 17, 2024

This is an issue because VS Code extension specifies the path in the command. So it's not possible to generate the coverage properly using VS Code testing tools with the Dart-Code extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant