ifixkart-admin/docs/testing/test-strategy.md
Adithiyan bbd3a3e959 feat: initial commit — full platform snapshot
- Backend: FastAPI app with all models, services, schemas, routes
- Admin Panel: Next.js dashboard with all modules
  (CRM, POS, repairs, warranties, billing, notifications, etc.)
- Ecommerce: storefront (submodule) + product catalog
- AI Agents: .agents/ skill library for Antigravity IDE
- Docs: architecture, billing, notification gateway markdown
- Submodules: Backend/OpenWA, Ecommerce/File 2/storefront
2026-10-13 12:59:47 +05:30

22 lines
959 B
Markdown

# Comprehensive Testing Strategy
## Test Pyramid & Categories
```text
┌────────────────┐
│ E2E Playwright│ Storefront & POS Flow
├────────────────┤
│ Integration │ FastAPI + MySQL + Redis
├────────────────┤
│ Unit Tests │ Pydantic + Service Layer
└────────────────┘
```
---
## Mandatory Test Suites
1. **Unit Tests (`pytest`)**: Verify business logic, tax formulas, and stock bucket calculations.
2. **API Tests**: Execute API contract validations against all 12 router files.
3. **POS Sync Idempotency Tests**: Simulate duplicate `pos_transaction_id` posts under simulated network retries.
4. **Payment Webhook Verification Tests**: Validate HMAC-SHA256 signature pass/fail paths.