Skip to content

Commit

Permalink
Add coverage scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sandstone-ag committed Aug 12, 2024
1 parent 95beb72 commit 8431ca0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
node_modules/
.env
coverage/
coverage.json
coverage-report/
.DS_Store

# Hardhat files
Expand All @@ -16,3 +15,4 @@ out/
!/broadcast
/broadcast/*/31337/
/broadcast/**/dry-run/
.vscode/
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
"scripts": {
"test": "forge test",
"prepare": "husky",
"lint": "solhint \"contracts/**/*.sol\" --ignore-path .solhintignore"
"lint": "solhint \"contracts/**/*.sol\" --ignore-path .solhintignore",
"coverage": "forge coverage",
"precov-report": "mkdir -p ./coverage-report && forge coverage --report lcov --report-file ./coverage-report/lcov.info",
"cov-report": "genhtml ./coverage-report/lcov.info --rc derive_function_end_line=0 --rc branch_coverage=1 -o coverage-report --exclude test --ignore-errors inconsistent --ignore-errors category"
},
"lint-staged": {
"*.sol": [
Expand Down

0 comments on commit 8431ca0

Please sign in to comment.