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 tonyc 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
[x] still occurring when I put cache: false in my nyc config
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 thenyc report
command. Is there a way to make it work innyc report
? Or is there any workaround? I found the mergedcoverage.json
contains all files' coverage data. Can I modify thecoverage.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 innyc report
Observed Behavior
--include
and--exclude
options don't work in the commandnyc report
Troubleshooting steps
cache: false
in my nyc configEnvironment Information
N/A