mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2025-12-26 16:27:25 +01:00
13 lines
306 B
Bash
Executable File
13 lines
306 B
Bash
Executable File
|
|
#!/bin/bash
|
|
|
|
KCOV=kcov
|
|
KCOV_OPTS="--verify --exclude-pattern=/.cargo"
|
|
KCOV_OUT="./kcov-out/"
|
|
|
|
export RUSTFLAGS="-C link-dead-code"
|
|
|
|
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
|