11 - Testing and Debugging
Test frontend and Rust logic separately, then together.
Test pyramid for Tauri
| Layer | Examples |
|---|---|
| Unit | Rust command logic, frontend utility functions |
| Integration | Command + state + storage interactions |
| E2E | User workflow in packaged/dev app |
Debugging workflow
- Frontend: browser devtools
- Rust: logs and debugger (
lldb/gdb) - Cross-boundary: trace command calls and event payloads
Practical checks
- Error surfaces user-friendly messages
- Long tasks show progress
- App survives invalid input and interrupted writes