-
-
Notifications
You must be signed in to change notification settings - Fork 112
Closed
vitest-dev/vitest
#6592Labels
Description
Describe the bug
With the new coverage reporting, the results for all previous files gets cleared when it runs again, even if the run is for a different file. This is especially noticeable when using watch mode.
Reproduction
- Run the tests for one file including coverage and verify that the coverage percentage is shown in VSCode
- Run the tests for a different file including coverage. The coverage percentage is now shown for that file, but the coverage for the initial file is now completely gone.
Output
[INFO 4:12:29 PM] [v0.5.15] Vitest extension is activated because Vitest is installed or there is a Vite/Vitest config file in the workspace.
[INFO 4:12:31 PM] [API] Running Vitest: v1.4.0 ([redacted]/vitest.config.ts)
[INFO 4:12:32 PM] [API] Vitest process 52649 created
[Worker] �[33mThe CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.�[39m
[INFO 4:14:22 PM] [API] Vitest process 52649 closed successfully
[INFO 4:14:22 PM] [API] Running Vitest: v1.4.0 ([redacted]/vitest.config.ts)
[INFO 4:14:23 PM] [API] Vitest process 54726 created
[Worker] �[33mThe CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.�[39m
[INFO 4:16:02 PM] Running 1 file(s): [redacted]
[INFO 4:16:37 PM] Running 1 file(s): [redacted]
[INFO 4:18:19 PM] Running 1 file(s) with name pattern: ^\s?[redacted]
[INFO 4:24:26 PM] Running 1 file(s) with name pattern: ^\s?[redacted]
[INFO 4:24:43 PM] Running 1 file(s) with name pattern: ^\s?[redacted]
[INFO 4:25:07 PM] [API] Vitest process 54726 closed successfully
[INFO 4:25:07 PM] [API] Running Vitest: v1.4.0 ([redacted]/vitest.config.ts)
[INFO 4:25:08 PM] [API] Vitest process 60430 created
[Worker] �[33mThe CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.�[39m
[INFO 4:25:16 PM] Running 1 file(s): [redacted]
[INFO 4:29:37 PM] Running 1 file(s): [redacted]
[INFO 4:29:53 PM] Running 1 file(s): [redacted]
[INFO 4:32:01 PM] Running 1 file(s) with name pattern: ^\s?[redacted]
[INFO 4:32:12 PM] [API] Vitest process 60430 closed successfully
[INFO 4:32:12 PM] [API] Running Vitest: v1.4.0 ([redacted]/vitest.config.ts)
[INFO 4:32:13 PM] [API] Vitest process 64228 created
[Worker] �[33mThe CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.�[39m
[INFO 4:32:16 PM] Running 1 file(s): [redacted]
[INFO 4:38:27 PM] Running 1 file(s) with name pattern: ^\s?[redacted]
[INFO 4:38:40 PM] Running 1 file(s): [redacted]
### Version
v0.5.15 (pre-release)
### Validations
- [X] Check that you are using the latest version of the extension
- [X] Check that there isn't [already an issue](https://github.com/vitest-dev/vscode/issues) that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitest-dev/vscode/discussions) or join our [Discord Chat Server](https://chat.vitest.dev).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
Reactions are currently unavailable