nyc Questions

4

Solved

Has anyone managed to combine test coverage report from two separate jest test runs? I am newbie trying to use the default jest coverage reporters: ["json", "lcov", "text&q...
Vaientina asked 24/6, 2020 at 16:53

3

Solved

I've inherited a JS code base with Jasmine unit tests. The testing framework uses karma and instanbul-combine to get code coverage. It seems istanbul-combine isn't working with present node modules...
Gospel asked 1/5, 2020 at 17:11

1

I'm struggling to set up coverage correctly using Playwright. It reports 0 coverage in all files (except the test files themselves, if I include them). I'm getting inspiration from https://playwrig...
Imperil asked 15/2, 2022 at 14:35

0

I've built tests using Cypress to test the FE of a Next.js application. now I want to add code-coverage checks to see where and what I need to add and to keep track of my progress. Looking at the g...
Complication asked 20/9, 2022 at 12:59

2

I'm running a code coverage report for NodeJs using istanbul and the nyc command. I'm using mocha for my unit tests I get a report for each file just as expected, but what I'd like to see is a re...
Marillin asked 9/7, 2017 at 10:7

3

Solved

What is instumentation used in nyc? nyc's instrument command can be used to instrument source files outside of the context of your unit-tests: I assume it will do coverage outside unit-testin...
Ballenger asked 24/9, 2019 at 7:23

1

I am using Cypress and Nyc configurations. My folder structure looks like this: |/project | /coverage/ /lcov-report /index.html |/cypress | /main /car /car.spec.tsx /color.spec.tsx ... ...
Ireland asked 25/3, 2022 at 7:12

4

Solved

I tried setting up code coverage in an Angular 8 project using Cypress and istanbul nyc. I managed to get the code instrumented (the global variable __coverage__ is properly set) : and the cove...
Heartworm asked 10/9, 2019 at 19:10

2

Solved

I have been trying to get Cypress code coverage working with my Angular production project to no avail. To try and help diagnose it, I have created a minimal implementation project to make sure I w...
Fuzz asked 12/6, 2020 at 14:51

3

I've written a small crawler with the help of Puppeteer. Now I'm facing the challenge that my tests are rather slowly (> 3 seconds for each test). I've been able to track it down to the launch fun...
Absolute asked 21/10, 2019 at 14:12

5

I am trying to use nyc + mocha to get test coverage on my unit tests that uses the es6 module syntax. When I run mocha my_test.mjs everything works fine. The dependencies within my_test.mjs (using ...
Incomprehensive asked 22/6, 2020 at 7:48

1

Solved

I am trying to debug when running nyc instead of just while running the mocha tests, so I won't have to run tests twice each time. VSCode runs the coverage and shows it to me, but it will not stop ...
Valet asked 17/7, 2018 at 10:30

1

Solved

I've inherited a JS code base with Jasmine unit tests. The testing framework uses karma and instanbul-combine to get code coverage. It seems istanbul-combine isn't working with present node modules...
Atal asked 30/4, 2020 at 18:48

1

Solved

Question: How do I make nyc visible to zsh? Steps to recreate: I tried yarn add nyc -g (I was following steps that used npm so I just replaced npm i with yarn add) Then ran nyc report --reporter...
Karinakarine asked 28/1, 2020 at 19:47

3

I am having difficulty trying to set up Vue CLI 3 with Jest to show test coverage. I have done everything possible to make it work, but it is still showing no coverage: Ran all test suites. ------...
Patronage asked 11/11, 2018 at 14:48

1

I am using jest and istanbul in my ReactJS project to write test cases and check on the test coverage. How do I ensure using a pre-commit hook that test coverage for any file, that I have staged t...
Primarily asked 28/6, 2019 at 10:53

1

I'm trying to get nyc ava and babel to all place nice together. I was having an issue where async / await branches were showing as not covered, so this was working, I'm having trouble integrating t...
Moor asked 6/9, 2017 at 16:22

0

I work at a company where @std/esm has not been approved. I have got my Mocha test working like this... // suite.js async function wire(){ await import("./Sanity.spec.mjs"); // eslint-disable-lin...
Daisey asked 14/2, 2019 at 2:20

1

Solved

I'm trying to add coverage report generation to a typescript library project. The layout includes these directories: project ├─ src │ ├─ lib ## project code (typescript), *.tsx │ ├─ test ## test ...
Bernadine asked 28/4, 2018 at 20:10

0

I am currently working on setting up a testing environment for a Vue project that uses the @vue/cli-plugin-unit-mocha to run unit tests. The project uses TypeScript and .vue Single-File-Components....
Adames asked 14/12, 2018 at 14:57

1

Solved

I'm using TypeScript with Visual Studio Code on Windows 10 to develop an NPM module. I use mocha/chai combined with nyc (istanbul) for unit testing and code coverage. For some of my tests I would ...
Dorso asked 27/11, 2018 at 9:54

0

I am writing integration tests for a CLI. All the unit tests are written using Jest as out-of-the-box it produces code coverage without any configuration, but unfortunately it does not instrument s...
Carmencarmena asked 19/11, 2018 at 11:55

0

I have been trying for hours now to get the istanbul code coverage reports up and running for my new vue (typescript based) project, generated with the vue-cli v3. Whenever I run my tests: (nodemon...
Phares asked 30/10, 2018 at 14:56

1

So nyc is mangling my files as follows: at _onCreate (src/post/admin.js:1:10453) at doQuery (src/db.js:59:216) at process._tickCallback (internal/process/next_tick.js:68:7) I am unsure of how...
Broadbrim asked 24/10, 2018 at 1:39

1

Solved

Do we need to include .nyc_output or should we just put that directory in .gitignore
Emileemilee asked 21/6, 2018 at 4:18

© 2022 - 2024 — McMap. All rights reserved.