From fcf9366eb89bf9ef10acd50d37f8f1060029099a Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Thu, 4 Feb 2016 21:07:52 +0300 Subject: [PATCH] local coverage for sync --- sync/cov.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 sync/cov.sh 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