Add an option that allows you to hide all files where code coverage is full in the code coverage output #314
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Inspired by this Pinkary post:
https://pinkary.com/@huberfe/questions/9d38b8f9-dc41-46ff-9708-0a6cf90eaac7
If your project has very good code coverage where most files are covered (like the Pinkary project), you may want to remove from the code coverage output all files where coverage is already 100%, allowing you to concentrate on those files which have not reached this level without having to hunt them down amongst a long list of green files
This PR adds a new
--hide-full-coverage
option to the test command. When this option is passed, any file where code coverage is 100% will not be printed in the test outputAlso currently the code coverage section did not have any kind of header which explained what was being displayed, I added this header and a little explainer if this option is selected
Once this PR is merged, this option can be added to Pest (and any other testing tool that might use this repository)