Skip to content

Test Coverage view not visible after running with coverage #513

@aniketicloud

Description

@aniketicloud

Describe the bug

When I run the tests with code coverage, the tests run and passes. Only once I saw the Test Coverage view tab. At this time, I could see the uncovered lines when I open the file and all that is explained in https://code.visualstudio.com/docs/editor/testing#_test-coverage. Now, after restart, I cannot see the code coverage of files with help of extension. Once, tests run with code coverage, but show incorrect results.
Screenshot 2024-10-25 230857

Attaching the repository:
https://github.com/aniketicloud/playwright-react-18-vite-ts/tree/feature/FM-65-poc-mui-vitest-code-coverage

Reproduction

  • Install React, Vite, React testing library, Vitest and vitest extension in VS Code
  • run tests with vitest vs code extension.

Output

Show the Test Coverage view.

Version

1.6.1

Validations

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions