You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've been trying to use your plugin but am having some difficulty with it.
I'm using gulp-mocha-phantomjs to run the tests and gulp-istanbul to instrument the code, setting coverageVariable: '__coverage__' in the options object - which appears in the outputted instrumented file. However, when I then try to use mocha-phantomjs-istanbul as the Phantom hook in the subsequent task it never creates the coverage.json file.
I've been consoling from the node_modules/mocha-phantomjs-istanbul/index.js and it doesn't seem to be able to find the coverage variable, getting to line 14 if (!coverage) {...} and then returning. My gulp tasks are as follows:
Hi, I've been trying to use your plugin but am having some difficulty with it.
I'm using gulp-mocha-phantomjs to run the tests and gulp-istanbul to instrument the code, setting
coverageVariable: '__coverage__'
in the options object - which appears in the outputted instrumented file. However, when I then try to use mocha-phantomjs-istanbul as the Phantom hook in the subsequent task it never creates the coverage.json file.I've been consoling from the node_modules/mocha-phantomjs-istanbul/index.js and it doesn't seem to be able to find the coverage variable, getting to line 14
if (!coverage) {...}
and then returning. My gulp tasks are as follows:Am I doing anything wrong? Or if it's an issue with how the code is being instrumented please can you suggest an alternative way of doing this?
Really appreciate your help, cheers!
The text was updated successfully, but these errors were encountered: