Skip to content

Commit

Permalink
Update codecov.yml to omit generated code (#361)
Browse files Browse the repository at this point in the history
Everytime we add or modify a CRD, we will fail to meet generated
code coverage. The onus of ensuring the correctness of generated
code lies on the generator itself. We can, in future, think about
generating tests for this code (trust but verify) but, for the time
being, it's best to exclude this from metrics.
  • Loading branch information
thunderboltsid authored Jan 15, 2024
1 parent 120a46d commit ba2b194
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
codecov:
require_ci_to_pass: yes

ignore:
# ignore all generated controller-gen and conversion-gen code
- "**/zz_generated.*.go"

coverage:
precision: 2
round: down
Expand All @@ -9,3 +13,4 @@ coverage:
patch:
default:
target: 75%

0 comments on commit ba2b194

Please sign in to comment.