This PR adds a new Cirrus job that generates test coverage reports for all pull requests and master using Codecov. It is free for open-source projects. We can now quickly determine whether a feature that a pull request adds is properly tested.
I’ve ran a few tests on my own fork, you can check it out here: https://app.codecov.io/gh/aureleoules/bitcoin and a test pull request: https://app.codecov.io/gh/aureleoules/bitcoin/pull/5.
Codecov has a nice feature that highlights the untested chunks of code directly in the GitHub’s “Files changed” tab of a pull request. See for example https://github.com/aureleoules/bitcoin/pull/5/files.
It can also generate a GitHub comment with a brief summary of the coverage: https://github.com/aureleoules/bitcoin/pull/5#issuecomment-1528823591. Though, that may be undesirable considering Drahtbot already comments on pulls. It can be turned off.
These are the permissions Codecov needs to work:
19212b413e518908fa73147b665d8599b7a2f016 also fixes #26736.