Add test coverage report from integration tests
Opened this issue · 0 comments
Description
The test coverage is pushed to the codecov.io platform: https://codecov.io/gh/mszostok/codeowners-validator
But the coverage raport is generated only from the unit-test. The problem is that not every checker is easy to test with unit test. For example, the owners_check executes external calls and mocking that does not make sens. Instead the integration testing is ensuring that the contract is fulfilled.
As a part of that task we should add the coverage report for the integration tests. There is already an option to do that:
- AliyunContainerService/pouch#1338
- https://www.cyphar.com/blog/post/20170412-golang-integration-coverage?spm=a2c65.11461447.0.0.46df4f31hscrct
Acceptance Criteria:
[ ] Add coverage report for integration tests
[ ] Push to the codecov.io coverage report which contains both the unit-test and integration-test coverage
[ ] Add test coverage badge to README.md
Reasons
We should be able to detect which part of the validator is not covered by our tests and be able to write a missing tests.