-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Pass options to coverageReporter #4103
Comments
This comment has been minimized.
This comment has been minimized.
Any updates on this? This just bit me I was trying to change the filename of a coverage report through cobertura. |
No news. PR welcome, though! 🙂 |
I need the feature too. It will allow me to customize text reporter to show not fully covered items only. |
Jest only calls Istanbul's Seems like we need to pass config to the Jest's logic is here: https://github.com/facebook/jest/blob/08cb885400c538c6f934680adc3d0b51200a0228/packages/jest-cli/src/reporters/coverage_reporter.js#L90-L106 Logic for separating reporter names and config in Jest is in |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
Trying to pass options to a coverage reporter (like you can with a normal reporter) fails with
The reporter supports options: https://github.com/gotwarlost/istanbul/blob/bc84c315271a5dd4d39bcefc5925cfb61a3d174a/lib/report/text.js#L38-L46
If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can
yarn install
andyarn test
.Config
Then just run
jest --coverage
.What is the expected behavior?
I should be able to pass options to coverage reporters just like normal reporters, as can be seen in its docs: https://facebook.github.io/jest/docs/en/configuration.html#reporters-array-modulename-modulename-options
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
[email protected], [email protected], [email protected]
The text was updated successfully, but these errors were encountered: