Test coverage report not working.
See original GitHub issueThe test coverage report is not working. Terminal details and html report, both are not being generated.
I created a project with vue cli 3.0 to do the tests. Available in github: https://github.com/xereda/vue-3.0
Commands executed:
npm run test:unit -- --coverage
// vue-cli-service test:unit "--coverage"
npm run test:unit -- --coverage --watch
// vue-cli-service test:unit "--coverage" "--watch"
Report not generated:
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:5
Top Results From Across the Web
Jest finds tests but doesn't collect coverage - Stack Overflow
The quick fix I said in my comment, using --watchAll instead, eg: react-scripts test --coverage --watchAll . Just for future reference, ...
Read more >Coverage report not working · Issue #7838 - GitHub
The problem is that I can't get the coverage report for any project. ... So the working command is CI=true yarn test --coverage...
Read more >Troubleshooting Code Coverage - Visual Studio (Windows)
If none of the tests are executed, there's nothing for code coverage to report. Resolution—In Test Explorer, choose Run All to verify that ......
Read more >Test Coverage Troubleshooting Tips - Code Climate
Most often, this is related to: 1. The reporter not able to find your test coverage results to upload them to Code Climate....
Read more >Run with coverage | IntelliJ IDEA Documentation - JetBrains
From the main menu, select Run | Edit Configurations and click the necessary configuration on the left panel. · Open the Code Coverage...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just an update if anyone’s following this issue: as explained in another issue (https://github.com/vuejs/vue-jest/issues/217) the problem seems to be related to latest version of jest v25. Downgrading seems to be a decent enough workaround to this problem for the meantime
Downgrading to
24.9.0
fixes the issue, now I have my vue components shown in the test coverage table