Draft
Conversation
|
@alxhall is attempting to deploy a commit to the ponbac's projects Team on Vercel. A member of the Team first needs to authorize it. |
623f3b4 to
d4acdee
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request significantly improves the test coverage and reliability of the
toki-tuicrate by introducing comprehensive unit and integration tests across the application's core modules. It also adds a newtest_supportmodule to provide reusable test helpers, and updates the documentation to guide contributors on running the test suite.Testing and test infrastructure improvements:
test_supportmodule (toki-tui/src/test_support.rs) containing helpers for creating test data and initializing the app, projects, activities, time entries, and timers. This module is now included in the crate for use in tests. [1] [2]README.mdwith a new "Testing" section explaining how to run the TUI test suite and what areas the tests cover.Expanded test coverage:
toki-tui/src/app/mod.rsfor core app behaviors, including timer state transitions, project/activity filtering, note editing, and task export parsing.toki-tui/src/app/state.rs, covering UTF-8 handling and cursor movement.toki-tui/src/runtime/actions.rs, including starting/stopping timers, saving/cancelling actions, and deleting entries, with both synchronous and asynchronous scenarios.toki-tui/src/ui/mod.rsto verify that key UI states and overlays render as expected, including timer display, project/activity info, status messages, and masked password fields.