istanbul Questions
19
Solved
I trying to collect test coverage for this project using
yarn test --coverage # i.e. "react-scripts test --coverage"
My jest config is this:
"jest": {
"collectCoverageFrom": [
"src/**/*.ts*"...
Calipash asked 11/8, 2019 at 14:54
3
We are trying to make a SonarQube code coverage report for our angular application. We have used Karma to generate a code coverage report and import it into SonarQube analyzer.
The SonarQube alread...
Newmown asked 16/8, 2018 at 13:57
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...
3
The unit test coverage report from Istanbul in HTML format displays every single folder of the project in the index.html.
It actually flattens the directory structure. Is there an option to render...
Shroudlaid asked 13/8, 2014 at 16:1
5
I am using Karma to test my JavaScript and get coverage reports. I am using the Istanbul coverage report, which is the default. Here is my preprocessors parameter:
preprocessors: {
'framework/**...
Arturo asked 19/3, 2014 at 21:31
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
4
Jest allows you to specify a coverage reporter in the package.json like so
{
...
"jest": {
"coverageDirectory": "./coverage",
"coverageReporters": ["json", "text", ...]
}
...
}
However, ...
Doughnut asked 22/3, 2018 at 1:51
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
6
In Jest, is there any way to ignore code for test coverage?
I tried using
/* istanbul ignore next */
But it doesn't seem to work.
Severalty asked 3/8, 2016 at 9:51
3
I'm trying to use Jest to test my code. It was working quite fine until I tried to exclude a class method from the tests.
The querySelector() call is the reason why I want to skip this method from ...
Insensibility asked 8/3, 2021 at 15:15
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...
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...
6
I am just unable to figure out why test coverage is 0 even though test case is passing. I have a script in package.json:
"nyctest": "node --max_old_space_size=4096 node_modules/nyc/bin/nyc.js --r...
4
Solved
I've always used Jasmine for my unit tests, but recently I started using Istanbul to give me code coverage reports. I mean I get the gist of what they are trying to tell me, but I don't really know...
Outrelief asked 28/10, 2014 at 20:52
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
Is it possible to ignore the marker E in istanbul branch coverage?
I am using Jasmine+karma+Istanbul. Is there any possibility to ingore E and get 100% branch coverage?
Maybe a property that ca...
Patroclus asked 7/8, 2015 at 17:18
2
For a React/Redux project I use Cypress to test the UI. I need to get code coverage from thoses tests to have the details in Sonar (but that's another story).
So I began reading the docs from Cypr...
1
Solved
I'm designing my tests using the Behavior Driven Development (BDD) approach using Gherkin syntax and running my tests with Cucumber JS.
I'm using Cucumber Studio to share reports and keep synced wi...
Bash asked 11/4, 2021 at 9:46
1
I'm using ESM to loading my modules and I use them in this way:
// More info on why this is needed see (https://github.com/mochajs/mocha/issues/3006)
async function wire(){
await import("./Sa...
Casillas asked 15/2, 2019 at 20:44
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...
1
I have VueJS app and Cypress for testing. I need to have code coverage info.
Running tests in Cypress is generating seemingly correct .nyc_output/out.json file with numbers how many times some lin...
Shend asked 8/8, 2019 at 11:51
3
Solved
I'm struggling to get proper coverage with nyc/istanbul for my typescript/mocha/gulp project. I've tried a number of approaches, some of them seem to be unable to use source maps and other fails du...
Permute asked 22/6, 2017 at 14:14
2
I've got a Ruby on Rails app with a JavaScript (mostly React) frontend. The suite of rspec feature tests exercises a significant portion of the frontend JavaScript code, but I don't have any visibi...
Extrovert asked 31/1, 2018 at 0:8
3
With Angular 4 it is possible to test the Component's template, for example checking if clicking a button triggers the expected method and stuff like that.
But how can templates be included in the...
Ulane asked 5/9, 2017 at 9:12
1 Next >
© 2022 - 2024 — McMap. All rights reserved.