Skip to content

test: add cross-stack coverage for core and tauri flows - #130

Merged
M3gA-Mind merged 4 commits into
tinyhumansai:mainfrom
M3gA-Mind:feat/new-look-e2e
Mar 31, 2026
Merged

M3gA-Mind merged 4 commits into
tinyhumansai:mainfrom
M3gA-Mind:feat/new-look-e2e

Conversation

@M3gA-Mind

Copy link
Copy Markdown
Collaborator

Summary

  • add new frontend unit tests for coreRpcClient and tauriCommands to cover method normalization, RPC payload mapping, and error/fallback behavior
  • add Rust unit tests for Tauri core_process startup defaults and existing-core fast-path behavior
  • extend Rust integration coverage with a JSON-RPC failure-path assertion for non-object params

Test plan

  • yarn workspace openhuman-app test:unit -- src/services/__tests__/coreRpcClient.test.ts src/utils/__tests__/tauriCommands.test.ts
  • cargo test --manifest-path app/src-tauri/Cargo.toml core_process
  • cargo test --test json_rpc_e2e json_rpc_rejects_non_object_params_with_clear_error
  • cargo test -p openhuman core::cli::tests (currently blocked by unrelated pre-existing failures in src/openhuman/agent/tests.rs)

Closes #57

Made with Cursor

- 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

Copy link
Copy Markdown
Member

code looks good but some failure bro to fix @M3gA-Mind

@M3gA-Mind

Copy link
Copy Markdown
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
@M3gA-Mind
M3gA-Mind merged commit 52b59f6 into tinyhumansai:main Mar 31, 2026
6 of 8 checks passed
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
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
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.

Write up e2e unit tests for the rust binary and for the tauri codebase.

2 participants