diff --git a/codecov.yml b/codecov.yml index a5edd97a..3456f0fe 100644 --- a/codecov.yml +++ b/codecov.yml @@ -5,12 +5,23 @@ coverage: status: project: default: - target: auto - threshold: 1% + # Floor at 85% so normal drift (a few hard-to-unit-test editor paths) + # does not fail the check. Base project is ~95%, so there is plenty of + # headroom without ratcheting it tighter on every PR. + target: 85% + threshold: 2% patch: default: - target: auto - threshold: 1% + # Same 85% floor for added/changed lines. Editor-window callbacks + # (OnFocus, polling schedule) are not cleanly unit-testable, so we + # accept a handful of uncovered lines per PR instead of chasing + # auto-vs-base noise. + target: 85% + threshold: 2% + # Informational: show the comment (so reviewers see where coverage + # dropped) but never block the merge. The project check above still + # guards against real regressions. + informational: true # Fix Docker container path prefix in coverage reports # Unity test runner generates paths like /github/workspace/UnityProject/...