mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-01-05 10:50:36 +01:00
test(coverage): Add manual coverage script.
This commit is contained in:
12
coverage.sh
Executable file
12
coverage.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
|
||||
#!/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
|
||||
Reference in New Issue
Block a user