Skip to content

Commit

Permalink
test: configure Codecov msg & targets
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlj95 committed Jul 8, 2024
1 parent 8382d8e commit 00c35e7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
coverage:
status:
patch:
default:
threshold: 5%
project:
default:
threshold: 5%
comment:
layout: 'header, diff, files, footer'
hide_project_coverage: false

codecov:
require_ci_to_pass: false
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"//2": "👇 Cypress executes it to perform custom reporting. With this:",
"//3": " - **same filename for local/CI**: the 'mv' command is run in both local & CI, so JSON coverage filename is the same",
"//4": " - **.nycrc* config files avoided:** could be mistakenly used by other tools",
"coverage:report": "nyc report --reporter json --report-dir coverage && mv -f coverage/coverage-final.json coverage/component-testing.json"
"coverage:report": "nyc report --reporter json --report-dir coverage && mv -f coverage/coverage-final.json coverage/component-testing.json",
"validate-codecov-yml": "curl -X POST --data-binary @codecov.yml https://codecov.io/validate"
},
"dependencies": {
"@angular/animations": "18.0.5",
Expand Down

0 comments on commit 00c35e7

Please sign in to comment.