GitAuto: Add code coverage ratio to README #409
Closed
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.
Resolves #408
What is the feature
Add a code coverage ratio to the README.md to display the project's current test coverage.
Why we need the feature
Including a code coverage ratio in the README provides immediate visibility into the test quality and reliability of the project. It helps contributors understand the extent of testing and can encourage improvements in test coverage, leading to more robust and maintainable code.
How to implement and why
Set Up Code Coverage Tool: Use a tool like
coverage.pyto measure the current test coverage of the project.Integrate with CI/CD Pipeline:
.github/workflows/) to run coverage analysis during the test phase.Generate Coverage Badge:
Update README.md:
Ensure Automation:
Reasons:
About backward compatibility
Adding a coverage ratio to the README does not affect the existing functionality of the project. It is purely an informational enhancement, so there are no backward compatibility concerns to address.
Test these changes locally