
backend-testing
バックエンド(Rust/Tauri)のテスト実装とデバッグを行います。Rustのテスト作成、cargo testの実行、テストエラーの修正、Repository/Service/Facadeレイヤーの
提供方 varubogu|开源
Backend Testing Skill
Use this skill for Rust test creation, failure analysis, and regression prevention.
Command rules
- Always run backend tests with worker cap:
cargo test -j 4. - Start with focused scope (single test/crate), then broaden.
Examples:
cargo test test_name -j 4cargo test -p flequit-core -j 4cargo test -p flequit-infrastructure-sqlite -j 4
Workflow
- Reproduce with the smallest failing scope.
- Fix root cause (logic, mock, data setup, or async behavior).
- Re-run the same focused test.
- Run wider suite only after focused pass.
Test design
- Unit tests: isolate service/business logic.
- Integration tests: verify cross-layer behavior with realistic setup.
- Assert both success path and key failure path.