About 154,000 results
Open links in new tab
  1. 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 coverage, I rea...

  2. How to get the code coverage report using Jest? - Stack Overflow

    Mar 19, 2019 · Is there a way to have code coverage in the JavaScript Jest testing framework, which is built on top of Jasmine? The internal framework does not print out the code coverage it gets. I've also …

  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 Overflow

    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-istanbul.

  5. 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 fraction in …

  6. 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 there someth...

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

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

  8. javascript - Cypress Code Coverage: Merge E2E and Component …

    Jul 21, 2023 · Code Coverage is setup on both the tests using istanbul and @cypress/code-coverage. The report is being generated for the individual tests. The issue comes up when I run once test type …

  9. jestjs - How to merge lcov.info files to make a consolidated coverage ...

    Mar 21, 2025 · Here is an answer that does not answer your question, but that answers your need to push coverage to SonarQube: sonar.javascript.lcov.reportPaths accepts multiple paths, separated by …

  10. Selenium: Is there any JS (JavaScript) code coverage tool which we can ...

    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-time …