coverage.sh 397 B

1234567891011121314151617181920
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. export COVERAGE=true
  4. export FOUNDRY_FUZZ_RUNS=10
  5. scripts/set-max-old-space-size.sh
  6. # Hardhat coverage
  7. hardhat coverage
  8. if [ "${CI:-"false"}" == "true" ]; then
  9. # Foundry coverage
  10. forge coverage --report lcov --ir-minimum
  11. # Remove zero hits
  12. sed -i '/,0/d' lcov.info
  13. fi
  14. # Reports are then uploaded to Codecov automatically by workflow, and merged.