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

Is there a way to filter files in the stage nyc report ? #1551

Open
1 task done
xuzhaocheng opened this issue Mar 12, 2024 · 0 comments
Open
1 task done

Is there a way to filter files in the stage nyc report ? #1551

xuzhaocheng opened this issue Mar 12, 2024 · 0 comments

Comments

@xuzhaocheng
Copy link

xuzhaocheng commented Mar 12, 2024

I want to generate all code coverage data but only show some files' coverage in the final report.
I found the --include option doesn't work in the nyc report command.
Is there a way to make it work in nyc report ? Or is there any workaround?
I found the merged coverage.json contains all files' coverage data. Can I modify the coverage.json' by keeping the file entries I am interested in, removing others, and then using the modified json as the input to nyc report` ?

Link to bug demonstration repository

N/A

Expected Behavior

--include and --exclude options should work in nyc report

Observed Behavior

--include and --exclude options don't work in the command nyc report

Troubleshooting steps

  • still occurring when I put cache: false in my nyc config

Environment Information

N/A

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

1 participant