Skip to content
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

Add an option that allows you to hide all files where code coverage is full in the code coverage output #314

Open
wants to merge 1 commit into
base: v8.x
Choose a base branch
from

Conversation

carlos-granados
Copy link

@carlos-granados carlos-granados commented Oct 12, 2024

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 output

Also 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant