Skip to content
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

Coverage not working for files outside working directory #962

Closed
sampathkumarm opened this issue Jan 8, 2019 · 2 comments
Closed

Coverage not working for files outside working directory #962

sampathkumarm opened this issue Jan 8, 2019 · 2 comments

Comments

@sampathkumarm
Copy link

I am unable to run coverage on the spec files outside the root directory (where package.json resides). Please find the screenshot attached and let me know if i am doing anything wrong here. Why the relative path doesn't work?

NYC should be able to run coverage on files using relative paths too.

Observed Behavior

coverage issue
result

Forensic Information

Operating System: the operating system you observed the issue on.
Environment Information: information about your project's environment, see instructions below:

  1. run the following script:

sh -c 'node 8.9.4; npm 5.6.0; npm ls' > output.txt

  1. share a gist with the contents of output.txt.
@JaKXz
Copy link
Member

JaKXz commented Mar 9, 2019

@sampathkumarm sorry for the late reply! Can you please provide a minimal reproduction repo with the latest version of nyc? Have you set your include array to look in your relative path? As documented nyc looks in your cwd by default unless told otherwise.

@stale stale bot removed the stale label Mar 9, 2019
@istanbuljs istanbuljs deleted a comment from stale bot Mar 9, 2019
@JaKXz JaKXz added the question label Mar 9, 2019
@stale
Copy link

stale bot commented May 8, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 8, 2019
@stale stale bot closed this as completed May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants