Closed AndyAtTogether closed 9 years ago
Until there is a pull request to fix this issue you can try yourself in lib/adapter.js or source/adapter/cucumber_runner.js:
Change from
onCucumberFinished: function onCucumberFinished() {
karma.complete({});
}
to
onCucumberFinished: function onCucumberFinished() {
karma.complete({
coverage: window.__coverage__
});
}
If the pull request is not reviewed and accepted a possible solution is to update your package.json to point to my fork and branch with the fix:
In packages.json update to:
"karma-cucumberjs": "git://github.com/hallvar/karma-cucumberjs.git#67e9b759a8",
it may just be my project but..
when i configure coverage, the instanbul report is generated though none of the files i specify to cover are reported on.
i've test this with some jasmine specs rathern the cucumber.js specs and the jasmine one generate coverage information.
This is a real shame as the coverage information would be the icing on the cake for me