-
Notifications
You must be signed in to change notification settings - Fork 20
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
How to get gulp-istanbul working with this? #10
Comments
I don't believe the istanbul plugin will actually work like this with |
I got a quick and dirty version running at the Sample output (from running
It also wrote out coverage information to the coverage folder, so overall this is fairly promising. |
I just published version |
@KenPowers Thanks! I tried this out and while this does seem to be working on Windows (yay!), I think I still prefer the Do you think that would be something this module could support or is that not possible? |
Unfortunately your best bet would probably be to follow the advice in gotwarlost/istanbul/issues/112. You could jerry-rig something up to recursively require all files in your |
You could probably also read the coverage data in another task and generate a list of files with 0% coverage. Now that I think about it I may be able to support this, but probably not today (busy busy busy). I'll look into it in a few days. |
Alternatively I can look in to supporting something through baseline: https://github.com/gotwarlost/istanbul/search?utf8=%E2%9C%93&q=baseline |
Yeah the problem with the require jerryrigging approach is that it still reports on things that don't need to be reported on, like config files and such outside my API folder. I just want to cover the files in my API folder, not everything that is touched by tests. |
That's where the
But I'm going to be looking into baseline files anyway. |
Hi, Following the suggestions for jerryrigging require all, I went these this three lines of code. Uses the require-walk module
I only want all the files in my app/ directory to be covered so I put that code into Cheers. |
Nice. I'm still going to leave this issue open as I investigate baseline functionality in Istanbul. |
Any word on this? Seems like Istanbul is working fine. |
It works but files that are never required won't show up in your coverage report. It may be desirable that if a file is not required in your tests that it shows up in the report with zero coverage. |
I am able to use
gulp-istanbul
withgulp-mocha
, but withgulp-spawn-mocha
I get no coverage output.What is the correct way to use
gulp-istanbul
(or Istanbul itself) with this?The text was updated successfully, but these errors were encountered: