view coverage.sh @ 39:e84d6d9ab29d

Export filter module.
author Lewin Bormann <lbo@spheniscida.de>
date Sun, 11 Mar 2018 11:29:29 +0100
parents fa21b7ec0e02
children 9486965587ce
line wrap: on
line source

#!/bin/bash

KCOV=kcov
KCOV_OPTS="--verify --exclude-pattern=/.cargo"
KCOV_OUT="./kcov-out/"

TEST_BIN=$(cargo test 2>&1 >/dev/null | awk '/^     Running target\/debug\// { print $2 }')

${KCOV} ${KCOV_OPTS} ${KCOV_OUT} ${TEST_BIN} && xdg-open ${KCOV_OUT}/index.html