mirror of openzeppelin-contracts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openzeppelin-contracts/scripts/checks/coverage.sh

19 lines
362 B

#!/usr/bin/env bash
set -euo pipefail
export COVERAGE=true
export FOUNDRY_FUZZ_RUNS=10
# Hardhat coverage
hardhat coverage
if [ "${CI:-"false"}" == "true" ]; then
# Foundry coverage
forge coverage --report lcov --ir-minimum
# Remove zero hits
sed -i '/,0/d' lcov.info
fi
# Reports are then uploaded to Codecov automatically by workflow, and merged.