I'm testing out a simple application (from the Mocha tutorial code here https://marcofranssen.nl/using-mocha-chai-sinon-to-test-node-js/) to try to get Istanbul to work. My problem is that Istanbul works fine to give me a coverage summary, but th...
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 what each of these percentages represent (St...
I've been reading articles on this all morning trying to get my environment setup correctly. But for some reason I'm not getting it. My setup-  /app     ... source (mixed js and ts) /scripts     ... copied source (js)     typescripts.js // tr...
I am trying to get Istanbul to work.  I keep getting this message at the end of running istanbul:     No coverage information was collected, exit without writing coverage   information   I have tried everything I could find online as you can see:...
i user this command:   set CODACY_PROJECT_TOKEN=my_token&& istanbul cover --report lcov node_modules/mocha/bin/_mocha -- -r babel-register -r ./test_helper.js \"test/**/*@(.js|.jsx)\"   Then i take passed in all test case but "No...
I am writing an app with react / redux / webpack. I am building out my testing with karma, mocha and want to use istanbul for test coverage. In an attempt to get coverage to work with karma-coverage I have set up the following karma.config.js  var ar...
Given the function with callback as follows:  myfunction('some value', function(){     //do something... })   How can I cover and test it using Jasmine ? It never enters in the flow inside the function(){... callback.  Thanks...
I've node app which use grunt to generate code coverage report this report is located under and I was able to run it manually   myAPP  -coverage   -index.html   I want that when the task of coverage will finish and the report is generated to run...
Gitlab CI requires you to specify a regex to extract the statements code coverage (so that they can display it). Given the build output below (with jest and istanbul), I've managed to come as far as: /Statements.*(\d+\%)/  ... (other build output...
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 to use a source map to unmangle this. The docs st...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.