-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working from CLI with mocha-phantomjs #3
Comments
Try downgrading to |
I had the same issue and I solved it like so:
|
The steps described by @arnoudius worked for me too. |
It's more than a year later, istanbul became nyc, mocha-phantomjs became mocha-phantomjs-core and my code is converted from ES6 using Babel. If anyone could help to update the steps outlined by @arnoudius I'd be very grateful. |
@arnoudius The steps mentioned by you worked like a charm. However, istanbul only checks files which are included in the tests instead of looking at all instrumented files when reporting coverage. |
I was trying to add code coverage to Parsley.js (on this branch).
I tried running the tests with the
mocha-phantomjs-istanbul
hook:The tests executed but no files were generated. I ran
istanbul report
afterward and istanbul generated an empty report (0% coverage, no files).I think I'm missing something. Do I need to tell mocha-phantomjs-istanbul which files need to be istanbul-instrumented or anything?
The text was updated successfully, but these errors were encountered: