leo/cover.bat
0rphon 7d2cbb2ec2 done with coverage
finished coverage tests. adding case by case tests from the parser fuzzer next
2022-03-02 14:13:37 -08:00

11 lines
417 B
Batchfile

cargo clean
cd compiler/parser
set RUSTFLAGS=-Cinstrument-coverage
cargo +nightly build
set LLVM_PROFILE_FILE=../../target/out/leo_coverage-%%p-%%m.profraw
cargo +nightly test -- test::parser_tests --exact --nocapture
grcov ../../target/out -s . --binary-path ../../target/debug/ -t html --branch --ignore-not-existing -o ../../target/debug/coverage/
cd ../..
del default.profraw
set RUSTFLAGS=
set LLVM_PROFILE_FILE=