Skip to content

Commit

Permalink
chore(contracts): generate coverage report for foundry
Browse files Browse the repository at this point in the history
  • Loading branch information
0xjei committed Oct 3, 2024
1 parent 1f10601 commit 23e2578
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/contracts/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ node_modules
# solidity-coverage files
/coverage
/coverage.json
lcov.info

# Hardhat Ignition
ignition/deployments/chain-*
4 changes: 2 additions & 2 deletions packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"test": "yarn test:hardhat && yarn test:forge",
"test:hardhat": "hardhat test",
"test:forge": "forge test -vvv",
"test:report-gas": "REPORT_GAS=true yarn test && forge test --gas-report",
"test:coverage": "hardhat coverage && forge coverage",
"test:report-gas": "REPORT_GAS=true yarn test:hardhat && yarn test:forge --gas-report",
"test:coverage": "hardhat coverage && forge coverage --summary --report lcov",
"typechain": "hardhat typechain",
"format:forge": "forge fmt",
"lint": "solhint 'contracts/**/*.sol'",
Expand Down
3 changes: 2 additions & 1 deletion scripts/clean-packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ const gitIgnored = [
"docs",
"out",
"coverage.json",
"lib"
"lib",
"lcov.info"
]

async function main() {
Expand Down

0 comments on commit 23e2578

Please sign in to comment.