Testing
Testing documentation, coverage reports, and quality assessments for the Momentum platform.
Testing Strategy
The Momentum platform uses a comprehensive testing approach:
- Unit Tests: Jest + React Testing Library (target: 80% coverage)
- Integration Tests: Lambda handlers with local PostgreSQL
- E2E Tests: Playwright for critical user flows
- API Tests: Postman collections for endpoint validation
Running Tests
# Run all tests
npm test
# Run with coverage
npm run test:coverage
# Run specific test file
npm test -- path/to/test.test.ts
# Run Playwright E2E tests
npm run test:e2e
Documentation Sections
Overview & Guides
- Testing Guide - Complete testing documentation
- Test Coverage Summary - Coverage metrics
- Test Scenarios - Test case catalog
Playwright E2E
- Playwright Setup - E2E test configuration
- Playwright Executive Summary - E2E results overview
- Playwright Coverage Analysis - E2E coverage details