i5-add-tests (part 3) #9

Merged
kemitix merged 28 commits from i5-add-tests into main 2023-07-29 20:36:04 +01:00
2 changed files with 27 additions and 2 deletions
Showing only changes of commit e318f78250 - Show all commits

6
.gitignore vendored
View file

@ -1,5 +1,7 @@
target
*.mp3
*.webm
/subscriptions.txt
/downloaded.txt
subscriptions.txt
downloaded.txt
coverage
*.profraw

23
justfile Normal file
View file

@ -0,0 +1,23 @@
coverage-init:
cargo install grcov
rustup component add llvm-tools
coverage:
#!/usr/bin/env bash
set -e
rm -rf ./target
just clean
export RUSTFLAGS="-Zinstrument-coverage" LLVM_PROFILE_FILE="just-%p-%m.profraw"
cargo +nightly build
cargo +nightly test
just generate
just server
generate:
grcov . --binary-path ./target/debug/ -s . -t html --branch --ignore-not-existing --ignore "./target/" -o ./coverage/
server:
cd ./coverage && python3 -m http.server 8001
clean:
rm -rf ./*.prof* ./coverage/