2016-02-04 19:07:52 +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
|
2016-02-04 19:09:32 +01:00
|
|
|
kcov --exclude-pattern ~/.multirust,rocksdb,secp256k1 --include-pattern sync/src --verify target/coverage target/debug/ethsync*
|
2016-02-04 19:07:52 +01:00
|
|
|
xdg-open target/coverage/index.html
|