Skip to content

feature: support passing in .nycrc-path to nyc #107

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

Open
Aghassi opened this issue Dec 9, 2019 · 1 comment
Open

feature: support passing in .nycrc-path to nyc #107

Aghassi opened this issue Dec 9, 2019 · 1 comment

Comments

@Aghassi
Copy link

Aghassi commented Dec 9, 2019

code-coverage/task.js

Lines 103 to 108 in 8f6154a

const args = [
'report',
'--report-dir',
reportDir,
'--temp-dir',
coverageFolder

Currently, this will only allow us to lookup the .nycrc from the working directory. However, in the event you are using this from something that is not in the current working directory (like a CLI with predefined configs), we can't point the nyc runner to a different file location on disk to look for the rc file. My request is that an option be added that would allow me to pass in an nycrc path to get the rc file, and if none is passed use the default

@floratmin
Copy link

Also when using a monorepo (nrwl/nx) i have to put a package.json file into each e2e directory and switch into this directory before executing cypress. Otherwise the coverage reports of all apps gets mixed into one directory on the workspace root. I think some more streamlining for this use case would be beneficial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants