-
-
Notifications
You must be signed in to change notification settings - Fork 297
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
[test runner] code coverage does not include untested files #1880
Comments
Relates to #1873 |
@LarsDenBakker would love to have your feedback on this. 😃 |
I'm not sure the "all" flag would change anything here. Did anyone test this? I think we need to see all the files in the browser to make them show up in the coverage. |
This may be overkill but here's a workaround:
|
Another approach instead of creating a new test file is to add it to Istanbul reporter as 0 coverage for all files found then merge the coverage data found. |
…erage for untested files
The
includes
property of thecoverageConfig
object does not include untested files in the code coverage. Only files visited during tests are included in the coverage.I think having the option to include the entire codebase in the code coverage output is a good idea. Either through the
includes
property or the addition of anall
property like the--all
flag that can be used with istanbul/nyc or c8.The text was updated successfully, but these errors were encountered: