-
-
Notifications
You must be signed in to change notification settings - Fork 360
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
Covers npm link
ed modules.
#154
Comments
Could maybe exclude paths that go above the current directory? |
I've noticed this too. I npm link a lot and it really makes for a noisy coverage output. |
novemberborn
added a commit
to novemberborn/nyc
that referenced
this issue
Feb 1, 2016
Files outside of the current working directory (meaning higher up in the file hierarchy) should not be instrumented. Fixes istanbuljs#157 where nyc is run from inside a node_modules directory. Fixes istanbuljs#154 where 'npm link' is used to fulfill dependencies. This removes matching the include/exclude patterns to the absolute filename, the patterns are now applied only to the relative portion within the current working directory. addAllFiles() has been changed to explicitly add files in the current working directory only.
novemberborn
added a commit
to novemberborn/nyc
that referenced
this issue
Feb 1, 2016
Files outside of the current working directory (meaning higher up in the file hierarchy) should not be instrumented. Fixes istanbuljs#157 where nyc is run from inside a node_modules directory. Fixes istanbuljs#154 where 'npm link' is used to fulfill dependencies. This removes matching the include/exclude patterns to the absolute filename, the patterns are now applied only to the relative portion within the current working directory. addAllFiles() has been changed to explicitly add files in the current working directory only.
#160 should resolve this. |
novemberborn
added a commit
to novemberborn/nyc
that referenced
this issue
Feb 3, 2016
Files outside of the current working directory (meaning higher up in the file hierarchy) should not be instrumented. Fixes istanbuljs#157 where nyc is run from inside a node_modules directory. Fixes istanbuljs#154 where 'npm link' is used to fulfill dependencies. This removes matching the include/exclude patterns to the absolute filename, the patterns are now applied only to the relative portion within the current working directory. addAllFiles() has been changed to explicitly add files in the current working directory only.
@jamestalmage @sindresorhus give this a shot:
If it does the trick I'll publish |
lloydcotten
pushed a commit
to lloydcotten/nyc
that referenced
this issue
Feb 11, 2016
Files outside of the current working directory (meaning higher up in the file hierarchy) should not be instrumented. Fixes istanbuljs#157 where nyc is run from inside a node_modules directory. Fixes istanbuljs#154 where 'npm link' is used to fulfill dependencies. This removes matching the include/exclude patterns to the absolute filename, the patterns are now applied only to the relative portion within the current working directory. addAllFiles() has been changed to explicitly add files in the current working directory only.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I use
npm link
and then run a test suite using NYC, the linked module ends up generating coverage info. I'm guessing because there is nonode_modules
folder in the parent path for linked modules (at least when usingnvm
).The text was updated successfully, but these errors were encountered: