Add Code Coverage Integration #415
Labels
area:ci
Relating to the CI/CD workflow
difficulty:easy
A simple task appropriate for newcomers to the codebase
good first issue
Good for newcomers
type:chore
Part of regular code upkeep
Have you read the Contributing Guidelines on issues?
Description
test.yml
workflow includes code coverage.Codecov
A placeholder for this has already been added to the
test.yml
workflow:pact-python/.github/workflows/test.yml
Lines 53 to 58 in a070978
Coveralls
Codacy (maybe?)
To begin with, the code coverage reporting would only be used as extra information, but the idea going forward would be to use the reports to ensure that code added or modified in PRs is covered appropriately.
Has this been requested on Canny?
No response
Motivation
Code coverage shows which lines are and are not covered as part of a test suite. PyTest has support for this through
pytest-cov
, and most other languages have an equivalent.While trying to target 100% coverage should not be a target in its own right, having clear and visible code coverage reporting can be a really useful tool during review to help ensure that changed code is behaving as expected.
Have you tried building it?
No response
Self-service
The text was updated successfully, but these errors were encountered: