About 376,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 …

  2. 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 …

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

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

  6. 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 …

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

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

  9. JavaScript code coverage with Jasmine - Stack Overflow

    Feb 4, 2017 · We are planning to introduce JavaScript unit testing in our project and so far Jasmine appears to be one of the better BDD unit testing frameworks for JavaScript. Now I am …

  10. javascript - How to tell Sonar to use my LCOV file for Code …

    14 We have a Jenkins job that contains a bunch of javascript files. We build our project via grunt, and at the end of the build we run JSCover to run our unit tests and collect code coverage. It …