-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
The --cwd option breaks instrumentation on Windows #1310
Comments
Note: I did see #1234, but the solution to that report doesn't seem to have fixed this problem. (The problem occurs even without any nycrc file, without adding any other flags like report-dir, etc.) |
@elliot-nelson This is istanbuljs/test-exclude#43, potentially being fixed by istanbuljs/test-exclude#44 |
@addaleax It seems related but I wonder if this will fix my situation where there are no uppercase files? I'm willing to test it out later today though, it looks like I could copy the fix into my local node modules. |
@elliot-nelson I think it’s also about the comment I just left on the fix about using |
I'm new to programming, so I know my statements could be completely off, but I am experiencing an issue using the I was using If I downgraded to I'm not sure if this is helpful at all to this particular thread, but I thought I would mention it, as the content here did help me to find out that I wasn't going crazy after and I was actually using the |
@ryancabanas , you've solved my issue. |
Link to bug demonstration repository
https://github.com/elliot-nelson/nyc-bug-demo
Expected Behavior
Running
nyc --cwd spec jasmine
should instrument the specs run, and produce a coverage report:Observed Behavior
Adding the
--cwd
option removes all instrumentation:Troubleshooting steps
"spec_dir"
setting inspec/support/jasmine.json
- this didn't work (jasmine is running the right files, those files just aren't instrumented).Environment Information
The text was updated successfully, but these errors were encountered: