diff --git a/sync/cov.sh b/sync/cov.sh new file mode 100755 index 000000000..2f8c594ff --- /dev/null +++ b/sync/cov.sh @@ -0,0 +1,9 @@ +if ! type kcov > /dev/null; then + echo "Install kcov first (details inside this file). Aborting." + exit 1 +fi + +cargo test --no-run || exit $? +mkdir -p target/coverage +kcov --exclude-pattern ~/.multirust,rocksdb,secp256k1 --include-pattern src --verify target/coverage target/debug/ethsync* +xdg-open target/coverage/index.html