Testing Strategy & Quality Gate
Piramida pengujian perangkat lunak, eksekusi otomatis, dan ambang batas kelulusan.
Status: Stablev1.0.0Source Verified: Yes
Source:
package.json, .github/workflows/ci.ymlTests: tests/Testing Strategy & Quality Gate#
Repository OrthoBreath menerapkan kebijakan Zero Regression dengan pengujian multi-lapis sebelum setiap rilis production.
1. Piramida Pengujian OrthoBreath#
text
text
1/\2 / \ E2E Browser Tests (Playwright) - 5 Journey Suites3 /----\4 / \ Firestore Security Rules (Firebase Emulator)5 /--------\6 / \ Route Authorization & Backend Pytest7 /------------\8 / \ Unit Tests (Vitest) - 36 Files / 139 Tests9 /----------------\
2. Daftar Test Suite & Command#
| Suite | Framework | Target Uji | Command Eksekusi |
|---|---|---|---|
| Unit Tests | Vitest | Aturan klinis, format data, policy, helpers (139 tests) | npm run test:unit |
| Route Auth Tests | Vitest | RBAC & otorisasi HTTP Route Handlers (31 tests) | npm run test:routes |
| Firestore Rules | Vitest + Emulator | Isolasi tenant & hak baca/tulis dokumen | npm run test:rules |
| AI Contract Tests | Pytest | FastAPI endpoints, SVM feature count (26.244) | npm run test:backend |
| End-to-End Tests | Playwright | Full journey pemeriksaan klinis & PWA | npm run test:e2e |
| Documentation Audit | Node.js Validator | 32/32 link dan jalur sumber terverifikasi | node scripts/validate-docs.mjs |
| Release Readiness | Node.js Audit | Integritas rilis dan perlindungan regresi | node scripts/release-readiness-audit.mjs |
3. Integrasi CI/CD Quality Gate#
Perintah tunggal untuk menjalankan seluruh gate verifikasi sebelum commit:
bash
bash
1npm run verify