11 - Testing and Debugging

Test frontend and Rust logic separately, then together.

Test pyramid for Tauri

LayerExamples
UnitRust command logic, frontend utility functions
IntegrationCommand + state + storage interactions
E2EUser 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