-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathcodecov.yml
More file actions
35 lines (32 loc) · 1.42 KB
/
codecov.yml
File metadata and controls
35 lines (32 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
codecov:
require_ci_to_pass: true
coverage:
status:
project:
default:
target: auto # Automatically use the base branch's coverage
threshold: 1% # Allow up to 1% drop to account for Codecov rounding
base: auto
if_not_found: success # Don't fail if base coverage is missing
paths: # Only track Go files for coverage calculations
- "**/*.go"
patch:
default:
target: 80% # Target at least 80% test coverage on new/changed lines
informational: true # Make patch coverage informational only
base: auto
paths: # Only track Go files for coverage calculations
- "**/*.go"
ignore:
- "**/mock_*.go" # Adjust this pattern based on your project structure
- "mock_*.go" # Adjust this pattern based on your project structure
- "**/mock/*.go" # Adjust interface required for mocking
- "**/*_test_helpers.go" # Test helper files (not test files but used only by tests)
- "**/testhelpers/**" # Test helper packages (used only by tests)
comment:
layout: "reach,diff,flags,tree" # Display different coverage views
behavior: default # Default PR comment behavior
require_changes: true # Only post if coverage changes
require_base: true # Compare against base branch coverage
github_checks:
annotations: true # Enable GitHub Checks Annotations