question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test coverage report not working.

See original GitHub issue

The 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"

DeepinScreenshot_select-area_20190711140344

npm run test:unit -- --coverage --watch
//  vue-cli-service test:unit "--coverage" "--watch"

DeepinScreenshot_select-area_20190711140449

Report not generated:

DeepinScreenshot_select-area_20190711140636

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

3reactions
ThePeachcommented, Feb 26, 2020

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

1reaction
TolikSyedincommented, Feb 28, 2020

Downgrading to 24.9.0 fixes the issue, now I have my vue components shown in the test coverage table

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found