Go to file
Wojciech Kozlowski 6cf0ebc57e
Some checks failed
Cargo Build and Test / Rust project - latest (push) Failing after 0s
Cargo Build and Test / Rust project - latest (pull_request) Failing after 0s
Add ci workflow
2024-01-05 23:49:40 +01:00
.gitea/workflows Add ci workflow 2024-01-05 23:49:40 +01:00
src Add a popup window for artist metadata (#70) 2023-05-21 22:48:48 +02:00
tests Artist merge for non-null properties always erases database properties (#72) 2023-05-21 22:28:51 +02:00
.gitignore Add database-library merge (#59) 2023-05-20 00:02:39 +02:00
Cargo.lock Add artist metadata fields (#69) 2023-05-21 17:24:00 +02:00
Cargo.toml Add artist metadata fields (#69) 2023-05-21 17:24:00 +02:00
README.md Add a popup window for artist metadata (#70) 2023-05-21 22:48:48 +02:00

Music Hoard

Usage notes

Text selection

To select and copy text use the terminal-specific modifier key (on Linux this is usually the Shift key).

Code Coverage

Pre-requisites

rustup component add llvm-tools-preview
cargo install grcov

Generating Code Coverage

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

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

For most cases cargo clean can be replaced with rm -rf ./codecov/debug/{coverage,profraw}.