Go to file
2023-04-12 20:52:33 +02:00
src Add mocks to json database tests 2023-04-12 20:52:33 +02:00
tests Remove unsafe from BeetsLibraryCommandExecutor (#23) 2023-04-10 22:03:04 +02:00
.gitignore Initial commit 2023-03-29 05:49:59 +09:00
Cargo.lock Add mocks to beets library tests 2023-04-12 20:34:58 +02:00
Cargo.toml Add mocks to beets library tests 2023-04-12 20:34:58 +02:00
README.md Add mocks to beets library tests 2023-04-12 20:34:58 +02:00

Music Hoard

Code Coverage

Pre-requisites

rustup component add llvm-tools-preview
cargo install grcov

Generating Code Coverage

cargo clean
env RUSTFLAGS="-C instrument-coverage" \
    LLVM_PROFILE_FILE="target/debug/profraw/musichoard-%p-%m.profraw" \
    cargo test
grcov target/debug/profraw \
      --binary-path ./target/debug/ \
      --output-types html \
      --source-dir . \
      --ignore-not-existing \
      --ignore "tests/*" \
      --ignore "src/main.rs" \
      --excl-start "mod tests \{" \
      --output-path ./target/debug/coverage/
xdg-open target/debug/coverage/index.html

Note that some changes may not be visible until target/debug/coverage is removed and the grcov command is rerun.