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

feat: remove mocks files from code coverage #192

Merged
merged 2 commits into from
Aug 1, 2022
Merged

feat: remove mocks files from code coverage #192

merged 2 commits into from
Aug 1, 2022

Conversation

shay2025
Copy link
Contributor

Description

This pull request introduces the removal of mock files in the code coverage by adding the file path pattern that matches /mocks.go to exclude-from-code-coverage.txt which is a file containing the file patterns regex which will be consumed by the exclude-from-code-coverage.sh script that removes from the code coverage the files that match the file patterns mentioned before.

Related issue

Closes #191

Type of change

Improvements (non-breaking change without functionality)

How was this tested?

Ran the go tool cover -func coverage.out that lists the files part of the code coverage with the covered percentage and it also presents at the end the total coverage percentage - with this it was verified that the parser and mock files didn't belong to this listing and the total coverage increased.

Checklist

  • I have performed a self-review of my code
  • I have ran task check -f and have no issues

@reviewpad-bot reviewpad-bot added small small pull request run-build Label that controls when build should be executed labels Jul 28, 2022
@reviewpad-bot reviewpad-bot added the ask Pull request requires a code review before merge label Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ask Pull request requires a code review before merge run-build Label that controls when build should be executed small small pull request waiting-review PR waiting for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove mocks files from code coverage
3 participants