Skip to content

Commit

Permalink
Configure Codecov to check by components
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenyuLInx authored Jun 21, 2024
1 parent ca163c3 commit 2bae05b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ignore:
- ".github"
- ".changes"

coverage:
status:
project:
Expand All @@ -11,3 +12,28 @@ coverage:
default:
target: auto
threshold: 80%

comment:
layout: "header, diff, flags, components" # show component info in the PR comment

component_management:
default_rules: # default rules that will be inherited by all components
statuses:
- type: project # in this case every component that doens't have a status defined will have a project type one
target: auto
threshold: 0.1%
- type: patch
target: 80%
individual_components:
- component_id: unittests
name: "Unit Tests"
flag_regexes:
- "unit"
statuses:
- type: patch
target: 80%
threshold: 5%
- component_id: integrationtests
name: "Integration Tests"
flag_regexes:
- "integration"

0 comments on commit 2bae05b

Please sign in to comment.