local coverage for sync

This commit is contained in:
Nikolay Volf 2016-02-04 21:07:52 +03:00
parent 5202185bf8
commit fcf9366eb8

9
sync/cov.sh Executable file
View File

@ -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