Skip to content

Commit

Permalink
Ignore generated files and examples from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
rrousselGit committed Jul 10, 2020
1 parent 2adadbf commit b3c583b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
working-directory: ${{ matrix.package }}

- name: Coverage
run:
run: |
if ${{ matrix.package }} != "packages/riverpod/example"; then
dart pub run test_coverage
fi
Expand Down
27 changes: 27 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
codecov:
require_ci_to_pass: yes

coverage:
precision: 2
round: down
range: "70...100"

parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no

# excluding generated files and examples from the coverage report
ignore:
- "**/example/"
- "examples"
- "**/*.g.dart"
- "**/*.freezed.dart"

comment:
layout: "reach,diff,flags,tree"
behavior: default
require_changes: no

0 comments on commit b3c583b

Please sign in to comment.