About 376,000 results
Open links in new tab
  1. javascript - How to get the code coverage report using Jest?

    Mar 19, 2019 · When using Jest 21.2.1, I can see code coverage at the command line and create a coverage directory by passing --coverage to the Jest script. Below are some examples: I …

  2. javascript - Jest code coverage not picking up JS files from parent ...

    Jan 1, 2025 · I have a specific project setup where the Jest tests live in a folder but are testing code from two different source folders located in a parent directory. When trying to setup code …

  3. node.js - Code coverage with Mocha - Stack Overflow

    May 19, 2013 · npm run test-with-coverage to run tests with code coverage. Force test failing if code coverage is low Fail if the total code coverage is below 90%:

  4. javascript - Test coverage not reported / instrumented - Stack …

    Feb 14, 2025 · To collect cypress code coverage, I am instrumenting code during the build stage (before running e2e tests) using npm run preview which happens with the help of vite-plugin …

  5. Exclude function (not an entire file) from JavaScript code coverage

    Dec 18, 2013 · Exclude function (not an entire file) from JavaScript code coverage Asked 12 years ago Modified 5 years, 11 months ago Viewed 19k times

  6. How do I read an Istanbul Coverage Report? - Stack Overflow

    Oct 29, 2014 · Line coverage has each executable line in the source file been executed? For each case, the percentage represents executed code vs not-executed code, which equals each …

  7. Selenium: Is there any JS (JavaScript) code coverage tool which we …

    Sep 21, 2016 · 5 In theory, you can use any coverage tool that instruments JavaScript code to collect coverage data. For example, you can use JSCoverage either in proxy mode (for real …

  8. javascript - How to ignore lines of code from coverage in vitest ...

    Jun 26, 2024 · I have my unit tests setup with vitest and I am looking for a way to ignore specific lines of code from vitest coverage. Looking for something similar to /* istanbul ignore next */. Is …

  9. javascript - Code Coverage for Typescript - Stack Overflow

    Run code coverage against the generated javascript. You can even hit 100% coverage by telling Istanbul to ignore those pesky impossible-to-call lines that typescript writes.

  10. SonarQube showing 0% code coverage in node js application

    Jul 7, 2022 · I have installed sonar Qube and integrated it with node js application. Right now I am getting code coverage as zero so I created a sonar properties file as below …