Skip to content

chore: refactor and tests#2

Merged
coko7 merged 2 commits intomainfrom
refactor-and-tests
Mar 27, 2026
Merged

chore: refactor and tests#2
coko7 merged 2 commits intomainfrom
refactor-and-tests

Conversation

@coko7
Copy link
Copy Markdown
Owner

@coko7 coko7 commented Mar 27, 2026

No description provided.

coko7 added 2 commits March 27, 2026 16:59
…e list cmd, and reorganize utils

- move activity command logic into src/commands/activity.rs for improved modularity
- remove activity_with_log.rs, introduce activity_log.rs with a focused log model
- refactor list and log printing logic for consistency; improve JSON and table output
- enhance CLI: add better period/date filters, clarify subcommands and argument validation
- split utils.rs into utils/date.rs, add utils/mod.rs and placeholder utils/common.rs
- add tags to PrintableActivity, improve models and row output
- simplify main.rs by delegating logic to command modules
- **BREAKING CHANGE:** activity listing model and CLI argument structure have changed
- add integration tests covering activity flow, error scenarios, and CLI output validation using assert_cmd, predicates, and tempfile.
- add unit tests for formatting, parsing, and edge case handling in models and utility modules.
- fix command argument handling and config injection in tests to use `BOAT_CONFIG` env var.
- update error message assertions for compatibility with current clap output.
- ensure robust duration formatting and corresponding expectation in tests.
@coko7 coko7 force-pushed the refactor-and-tests branch from 1cc1c52 to 26e5a92 Compare March 27, 2026 21:08
@coko7 coko7 merged commit 52ee2b3 into main Mar 27, 2026
5 checks passed
@coko7 coko7 deleted the refactor-and-tests branch March 27, 2026 21:11
@coko7 coko7 self-assigned this Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant