go test ./... -coverprofile cover.out | tee <path_to_coverage_output>go run ./ci/unit_test_coverage/main.go --coverage <path_to_coverage_output> --limits <path_to_limits_file>
- The
unit_test_coverageapplication has a--bypassflag that can be set. To push code that lowers test coverage, either enable thebypassflag in the CI script, or manually alter thelimits.jsonfile.
- If you've increased coverage and want to set a new high threshold, generate a coverage file and use
unit_test_coverageto update thelimits.jsonfile:go test ./... -coverprofile cover.out | tee <path_to_coverage_output>go run ./ci/unit_test_coverage/main.go --update --coverage <path_to_coverage_output> --limits <path_to_limits_file>