ifixkart-admin/workflows/sharable/backend/add-tests.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

15 lines
689 B
Markdown

---
title: Add Meaningful Tests
description: Add or improve tests for existing or changed behavior
---
# Add Meaningful Tests
1. Run Graphify query first to map impacted implementation and test files.
2. Inspect nearby tests to identify test runner, factories, fixtures, mocks, and naming conventions.
3. Identify externally visible behavior to test.
4. Cover happy path, edge cases, invalid input, error handling, and authorization/permissions where relevant.
5. Prefer precise assertions over broad snapshots.
6. Avoid testing private implementation details.
7. Run targeted tests, then `npm run lint` and `npm run build` as applicable.
8. Summarize coverage added and remaining gaps.