GoogleCloudPlatform/spanner-migration-tool

Automated code coverage check for HarbourBridge

manitgupta opened this issue · 2 comments

Currently we do not use the -cover mechanism in go test to generate coverage reports for HarbourBridge. In order to ensure incremental code coverage (velocity), we should create a CI/CD workflow which:

  1. Generates code coverage report on each new commit to master or pull request.
  2. Evaluates code coverage metrics and fails/passes the check based on statically configured criteria.

Code coverage criteria example - Reduction in % code coverage should be flagged.

We should also add a github badge to display the current code coverage of the package:

https://github.com/tj-actions/coverage-badge-go

We currently do this for the build status of the package.

Completed in #306.