Skip to content

Commit

Permalink
Add comprehensive TUI testing infrastructure (#10)
Browse files Browse the repository at this point in the history
* Add comprehensive TUI testing infrastructure

- Create tui_app.rs to centralize UI state management
- Add tui_tests.rs with ratatui testing patterns
- Move UI logic from main.rs to tui_app module
- Update dependencies for testing support

This change improves testability by:
1. Isolating UI logic for better testing
2. Adding test infrastructure using ratatui patterns
3. Creating comprehensive test cases for UI components

Co-Authored-By: Yuta Hinokuma <[email protected]>

* fix test case sample

* Fix and refine TUI tests

Co-Authored-By: Yuta Hinokuma <[email protected]>

* fix: update TUI test assertions to match actual column headers

Co-Authored-By: Yuta Hinokuma <[email protected]>

* test: add clean operation test with dry-run verification

Co-Authored-By: Yuta Hinokuma <[email protected]>

* chore: update winnow dependency to v0.6.21

Co-Authored-By: Yuta Hinokuma <[email protected]>

* chore: update ratatui API usage for v0.29.0 compatibility

Co-Authored-By: Yuta Hinokuma <[email protected]>

* fix: restore cargo clean implementation in DeleteState::Confirm handler

Co-Authored-By: Yuta Hinokuma <[email protected]>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Yuta Hinokuma <[email protected]>
Co-authored-by: Yuta Hinokuma <[email protected]>
  • Loading branch information
3 people authored Jan 1, 2025
1 parent cf9daf1 commit 53087fe
Show file tree
Hide file tree
Showing 7 changed files with 1,223 additions and 700 deletions.
1 change: 1 addition & 0 deletions .idea/cargo-cleaner.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 53087fe

Please sign in to comment.