Closed MhdTlb closed 6 years ago
gulp-istanbul only instrument the files in the current node context. This means it doesn't work in 2 specifics cases:
Thanks @SBoudrias for the quick response. Is there any work around or other plugin that I can use for this scenario?
@MhdTlb I'd recommend you to use a more modern testing tool with built-in coverage. My personal go to is Jest; and Ava is also pretty good.
I'm trying to generate code coverage for QUnit tests.
gulpfile.js
has the following tasks:index.html
contains references toqunit
and all my javascript test files.So after running cmd
gulp test
, I will get an empty report(All files 100%):The weired thing, in the CMD output, is that executing unit test started after returning
Coverage summary
(not before as I was expecting) and all unit tests passed.Is there a specific setup to use QUnit Html file to generate code coverage?