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.

No coverage reports

See original GitHub issue

💥 Regression Report

After updating from 26.4.0 -> 26.4.2, I get no more a valid coverage report in jest.

Last working version

Worked up to version: 26.4.0

Stopped working in version: 26.4.2

To Reproduce

Steps to reproduce the behavior:

  1. write your app with tests
  2. run the coverage report in jest (jest --coverage) with version 26.4.0
  3. update to 26.4.2
  4. run the coverage report again

Expected behavior

The coverage report should be shown as in version 26.4.0

envinfo

System:
    OS: MacOS 10.15.7

Npm packages:
    jest: 26.4.2
    typescript: 4.0.3
   @babel/core :  ^7.12.3 ,
   @babel/plugin-syntax-jsx :  ^7.12.1 ,
   @babel/preset-env :  ^7.12.1 ,
   @babel/preset-react :  ^7.12.1 ,
   @babel/preset-typescript :  ^7.12.1 ,
   babel-loader :  ^8.1.0 ,

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:27

github_iconTop GitHub Comments

3reactions
ahnpnlcommented, Oct 29, 2020

clear cache works for me with 26.4.3. What I did is:

  • Upgrade to 26.4.3
  • Run yarn jest --clearCache
  • Run test again and coverage shows.

I actually linked the wrong duplicated issue, already corrected the comment.

2reactions
ahnpnlcommented, Nov 4, 2020

Ok that is more than an issue indeed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No coverage report can be found with sonar.coverage.jacoco ...
I have integrated SonarQube & Jacoco plugin in our project, Issue is When I try to run it on localhost:9000 it is working...
Read more >
No Coverage Report Generated on Command Line But ...
This article will help us to find the real cause of not generating munit coverage report on command line and the related fix....
Read more >
Error: No coverage report found - python - Codecov
I don't believe that the python tests module is able to generate coverage reports. The easiest solution is to install and tell pytest...
Read more >
Test coverage overview - SonarQube Documentation
Test execution reports tell you which tests have been run and their results. SonarQube itself does not calculate coverage. To include coverage results...
Read more >
pytest and codecov: no coverage report found - Stack Overflow
1) create pytest.ini file in your project directory and add the following lines [pytest] testpaths = tests python_files = *.py ...
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