summaryrefslogtreecommitdiff
path: root/server/coverage.sh
blob: fb2ad887ee893fa7daf54f243f6d830e819619da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set +e

# Remove old instrumented data
rm -rf ./target/debug/coverage/



# Run tests, with instrument-coverage enabled
RUSTFLAGS="-Cinstrument-coverage" LLVM_PROFILE_FILE="target/debug/coverage/%p-%m.profraw" cargo test

~/.cargo/bin/grcov ./target/debug/coverage/ -s . --binary-path ./target/debug/ -t html --keep-only 'src/*' -o ./target/debug/coverage/