forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yml
More file actions
23 lines (21 loc) · 1.07 KB
/
Copy pathcodecov.yml
File metadata and controls
23 lines (21 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ignore:
- config/ # Container/service configuration — not directly testable
- tests/PHPStan/ # Static analysis rules — not exercised by PHPUnit
- tests/Rector/ # Rector rules — run outside PHPUnit coverage
- tests/eventdispatcher/ # Example modules for documentation
# Strip environment-specific path prefixes from coverage reports so Codecov
# can match them to repository files. See https://docs.codecov.com/docs/fixing-paths
fixes:
- '/var/www/localhost/htdocs/openemr/::' # Apache Docker container
- '/usr/share/nginx/html/openemr/::' # nginx Docker container
- '/home/runner/work/openemr/openemr/::' # GitHub Actions runner (isolated tests)
coverage:
status:
project:
default:
target: auto # Use current coverage as floor — no regression allowed (was 4%)
threshold: 1% # Allow 1% fluctuation for test-unrelated changes
patch:
default:
target: 50% # New code must have at least 50% coverage (was 0%)
threshold: 5% # Flexibility for config/migration/generated files