-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcodecov.yml
More file actions
75 lines (66 loc) · 2.61 KB
/
Copy pathcodecov.yml
File metadata and controls
75 lines (66 loc) · 2.61 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
codecov:
require_ci_to_pass: true # Wait for CI to pass before posting comments
notify:
wait_for_ci: true # Wait for all CI checks before sending notifications
branch: main # Default comparison branch
branches:
- main
- develop
# Coverage thresholds and status checks
coverage:
precision: 2 # Number of decimal places (e.g., 85.43%)
round: down # Round coverage down
range: "70...100" # Color coding: red (0-70), yellow (70-90), green (90-100)
status:
# Project coverage check (overall coverage)
project:
default:
target: auto # Compare to base commit (previous coverage)
threshold: 1% # Allow 1% drop without failing (adjust as needed)
informational: false # Set to true to make non-blocking
if_ci_failed: error # Fail if CI fails
# Patch coverage check (new code coverage)
patch:
default:
target: 70% # Require 70% coverage on new code (adjusted for UI components)
threshold: 10% # Allow 10% variance
informational: false
if_ci_failed: error
# Pull request comment configuration
comment:
layout: "header, diff, flags, files, footer" # Customize comment sections
behavior: default # Update existing comment
require_changes: false # Always show comment (even if no changes)
require_base: false # Don't require base commit coverage
require_head: true # Require head commit coverage
hide_project_coverage: false # SHOW project coverage (important!)
# Show coverage change in PR title/header
after_n_builds: 1 # Post comment after 1 build completes
# GitHub Checks configuration
github_checks:
annotations: true # Show inline annotations on changed lines (set false if too cluttered)
# Ignore paths (don't include in coverage calculations)
ignore:
- "**/*.test.js"
- "**/*.test.jsx"
- "**/test/**"
- "**/tests/**"
- "**/__tests__/**"
- "**/node_modules/**"
- "vite.config.js"
- "vitest.config.js"
- "eslint.config.js"
- "tailwind.config.js"
- "postcss.config.js"
# Exclude presentational UI components (tested via integration/E2E)
- "src/components/Header.jsx"
- "src/components/Footer.jsx"
- "src/components/ComplexityPanel.jsx"
- "src/components/SettingsPanel.jsx"
- "src/components/ControlPanel.jsx"
- "src/components/ArrayVisualizer.jsx"
- "src/components/GridVisualizer.jsx"
- "src/components/GridCell.jsx"
- "src/components/ArrayBar.jsx"
- "src/main.jsx"
- "scripts/**"