openethereum/util/cov.sh

10 lines
333 B
Bash
Raw Normal View History

2016-02-03 20:00:09 +01:00
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/ethcore_util*
xdg-open target/coverage/index.html