Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upsetting coverage-path doesn't include all code in path #710
Comments
This comment has been minimized.
This comment has been minimized.
I think this a reasonable idea, any files under the coverage-path will be traversed and required. It will be breaking as coverage percentages might change and break existing builds. I wonder if we should add an option for opting-in or out of this auto-require behavior. |
This comment has been minimized.
This comment has been minimized.
My 2 cents: automatic with opt-out. We were just discussing why we have to manually exclude code in ./test path but the code in my ./src path isn't automatically included in coverage. |
This comment has been minimized.
This comment has been minimized.
What if we added a |
I'm setting coverage-path to
--coverage-path lib
. As a result, I'm expecting ALL files in thelib
dir to be part of the coverage report.Actual behavior:
Files not required in the test files are not covered.
https://github.com/danielb2/lab-example
It would also be useful to be able to specify multiple paths to include coverage for