🧪 Complete test suite and modular CLI refactor (v0.5.0) #18
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
umpire274/librius!18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "v0.5.0"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
✨ Summary
This PR marks a major structural milestone for Librius, completing the first phase of the roadmap (v0.5.x):
the implementation of a comprehensive test suite and a full CLI modular refactor.
The CLI is now cleanly separated into logical components (
args.rs,dispatch.rs,mod.rs) and all test code has been consolidated under/tests, providing a solid foundation for future releases, including the upcominglibrius_corecrate and GUI frontend.🧪 Added
setup_temp_db()utility for creating temporary SQLite databases cross-platform:%TEMP%\librius_test_*.db/tmp/librius_test_*.db--help,search, etc.) viaassert_cmdandpredicates.🔧 Changed
cli/args.rs→ defines commands, subcommands, and global options.cli/dispatch.rs→ handles parsing and subcommand execution.cli/mod.rs→ acts as unified entry point, exportingbuild_cli(),run_cli(), andparse_cli().cli.rsand migrated remaining logic intomod.rs.🧱 Internal
#[cfg(test)]modules fromisbn.rsandlib.rs./tests/for a cleaner and unified structure.v0.5.1.✅ Testing
cargo test -- --nocapture.📦 Version
Release: v0.5.0
Date: 2025-11-11