This commit is contained in:
2024-05-03 12:25:20 +03:00
commit 8236ae0642
19 changed files with 452 additions and 0 deletions

16
Makefile Normal file
View File

@ -0,0 +1,16 @@
prepare-mac: prepare
brew install llvm
prepare:
rustup component add llvm-tools-preview
test:
cargo clean
mkdir -p coverage/
mkdir -p target/coverage
rm -rf coverage/*
rm -rf target/coverage/*
RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='coverage/cargo-test-%p-%m.profraw' cargo test --workspace
grcov . --binary-path ./target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" --ignore "*.test.rs" --excl-line '^[ \t]*///.$$' -o target/coverage/lcov.info
grcov . --binary-path ./target/debug/deps/ -s . -t markdown --branch --ignore-not-existing --ignore '../*' --ignore "/*" --ignore "*.test.rs" --excl-line '^[ \t]*///.$$' -o target/coverage/statistic.md
cat target/coverage/statistic.md