test: comprehensive Rust tests + real-backend integration tests #12
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/desktop-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rust tests (10 new, runs in CI via
cargo test)api.rsmodule — no Tauri dependencyJS integration tests (6 tests, ~650ms)
test-helpers.shstartsmvn spring-boot:runwith H2 in-memory test DB on port 14000vitest.integration.config.js— unit tests and integration tests never mixUnit tests still pass (13/13, ~100ms)
CI workflow updated
backend-integrationjob: installs Java 21, spins up backend, runs integration + E2E testsFiles changed
desktop/src-tauri/src/api.rs— new pure-Rust HTTP API moduledesktop/src-tauri/src/commands.rs— delegates to api.rsdesktop/src-tauri/src/lib_test.rs— additional Rust testsdesktop/src/api.integration.test.js— 6 real-backend integration testsdesktop/test-helpers.sh— backend lifecycle managerdesktop/vitest.integration.config.js— separate vitest config.github/workflows/desktop.yml— added integration jobced6798d35to6f9b33548c