Repository navigation
test: add cross-stack coverage for core and tauri flows - #130
Merged
Merged
Conversation
- Introduced comprehensive tests for the Mnemonic page, covering initial render, copy to clipboard functionality, confirmation checkbox behavior, and mode switching between generate and import. - Validated user interactions, including input handling and button states, ensuring robust functionality and user experience. - Enhanced test coverage for various scenarios, including validation of mnemonic phrases and loading states during operations.
Add focused Rust and frontend tests for core process startup behavior, CLI argument parsing, JSON-RPC error handling, and Tauri command/RPC mapping paths to improve confidence for issue tinyhumansai#57. Closes tinyhumansai#57 Made-with: Cursor
senamakel
approved these changes
Mar 31, 2026
Member
|
code looks good but some failure bro to fix @M3gA-Mind |
Collaborator
Author
|
fixing those itself.. That is why didn't merge it yet |
Consolidate mock imports and simplify function calls in coreRpcClient tests. Adjust formatting in Rust core_process and CLI tests for better clarity. Update mnemonic test assertions for improved accuracy. Made-with: Cursor
AusAgentSmith
pushed a commit
to AusAgentSmith/openhuman
that referenced
this pull request
May 23, 2026
…#130) * Add unit tests for Mnemonic page - Introduced comprehensive tests for the Mnemonic page, covering initial render, copy to clipboard functionality, confirmation checkbox behavior, and mode switching between generate and import. - Validated user interactions, including input handling and button states, ensuring robust functionality and user experience. - Enhanced test coverage for various scenarios, including validation of mnemonic phrases and loading states during operations. * test: add cross-stack test coverage for core and tauri flows Add focused Rust and frontend tests for core process startup behavior, CLI argument parsing, JSON-RPC error handling, and Tauri command/RPC mapping paths to improve confidence for issue tinyhumansai#57. Closes tinyhumansai#57 Made-with: Cursor * refactor(tests): streamline test code and improve readability Consolidate mock imports and simplify function calls in coreRpcClient tests. Adjust formatting in Rust core_process and CLI tests for better clarity. Update mnemonic test assertions for improved accuracy. Made-with: Cursor
6 tasks done
senamakel
referenced
this pull request
in senamakel/openhuman
Aug 30, 2026
Points at tinyagents main 32bbe70, which carries both fixes this PR needs: the base64 0.22 pin (kernel-floor duplicate) and the conflicts_with_send gate in detect_verbs (restores pre-extraction ranking parity). Later ranking heuristics still on the crate branch are deliberately NOT pinned here - they change behaviour rather than preserve it, and belong in their own PR against the crate. Co-authored-by: Medulla <medulla@tinyhumans.ai>
senamakel
pushed a commit
to nocstah/openhuman
that referenced
this pull request
Sep 11, 2026
…#130)\n\n* Add unit tests for Mnemonic page\n\n- Introduced comprehensive tests for the Mnemonic page, covering initial render, copy to clipboard functionality, confirmation checkbox behavior, and mode switching between generate and import.\n- Validated user interactions, including input handling and button states, ensuring robust functionality and user experience.\n- Enhanced test coverage for various scenarios, including validation of mnemonic phrases and loading states during operations.\n\n* test: add cross-stack test coverage for core and tauri flows\n\nAdd focused Rust and frontend tests for core process startup behavior, CLI argument parsing, JSON-RPC error handling, and Tauri command/RPC mapping paths to improve confidence for issue tinyhumansai#57.\n\nCloses tinyhumansai#57\n\nMade-with: Cursor\n\n* refactor(tests): streamline test code and improve readability\n\nConsolidate mock imports and simplify function calls in coreRpcClient tests. Adjust formatting in Rust core_process and CLI tests for better clarity. Update mnemonic test assertions for improved accuracy.\n\nMade-with: Cursor\n
senamakel
added a commit
to nocstah/openhuman
that referenced
this pull request
Sep 11, 2026
…n\nPoints at tinyagents main 32bbe70, which carries both fixes this PR needs:\nthe base64 0.22 pin (kernel-floor duplicate) and the conflicts_with_send\ngate in detect_verbs (restores pre-extraction ranking parity).\n\nLater ranking heuristics still on the crate branch are deliberately NOT\npinned here - they change behaviour rather than preserve it, and belong in\ntheir own PR against the crate.\n\n
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.
Summary
coreRpcClientandtauriCommandsto cover method normalization, RPC payload mapping, and error/fallback behaviorcore_processstartup defaults and existing-core fast-path behaviorparamsTest plan
yarn workspace openhuman-app test:unit -- src/services/__tests__/coreRpcClient.test.ts src/utils/__tests__/tauriCommands.test.tscargo test --manifest-path app/src-tauri/Cargo.toml core_processcargo test --test json_rpc_e2e json_rpc_rejects_non_object_params_with_clear_errorcargo test -p openhuman core::cli::tests(currently blocked by unrelated pre-existing failures insrc/openhuman/agent/tests.rs)Closes #57
Made with Cursor