Go to file
Wojciech Kozlowski 93c6533c2f
All checks were successful
Cargo CI / Build and Test (push) Successful in 1m3s
Cargo CI / Lint (push) Successful in 42s
118---limit-the-information-stored-in-the-database (#126)
Closes #118
Closes #68

Reviewed-on: #126
2024-02-10 20:23:10 +01:00
.gitea Have consistent naming for binaries (#91) 2024-01-11 21:29:03 +01:00
src 118---limit-the-information-stored-in-the-database (#126) 2024-02-10 20:23:10 +01:00
tests 118---limit-the-information-stored-in-the-database (#126) 2024-02-10 20:23:10 +01:00
.gitignore Add integration tests to CI (#82) 2024-01-06 16:14:07 +01:00
Cargo.lock Streamline adding new URL types (#122) 2024-02-09 18:41:20 +01:00
Cargo.toml Streamline adding new URL types (#122) 2024-02-09 18:41:20 +01:00
README.md Artists with a _sort field show up twice (#109) 2024-01-14 15:46:33 +01: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 \
    rm -rf ./codecov/debug/{coverage,profraw}
env CARGO_TARGET_DIR=codecov \
    cargo clean -p musichoard
env RUSTFLAGS="-C instrument-coverage" \
    LLVM_PROFILE_FILE="codecov/debug/profraw/musichoard-%p-%m.profraw" \
    CARGO_TARGET_DIR=codecov \
    BEETSDIR=./ \
    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" \
      --ignore "src/bin/musichoard-edit.rs" \
      --excl-start "GRCOV_EXCL_START|mod tests \{" \
      --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}.