test icon indicating copy to clipboard operation
test copied to clipboard

The coverage output json files are not placed in specified directory

Open osaxma opened this issue 2 years ago • 1 comments

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 avatar Jan 17 '24 15:01 osaxma

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.

osaxma avatar Jan 17 '24 15:01 osaxma