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...
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...
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
...
...
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...
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...
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 ...
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...
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...
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.
------...
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...
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...
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...
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...
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
1 Next >
© 2022 - 2024 — McMap. All rights reserved.