Test Coverage Gap
Current State: No tests exist in the codebase. Zero test coverage.
Required:
-
Backend (Python/FastAPI/Flask):
- Add pytest with pytest-cov
- Unit tests for auth routes (login, register, password change)
- Unit tests for streams CRUD
- Unit tests for recordings CRUD
- Unit tests for events CRUD
- Unit tests for schedules CRUD
- Unit tests for analytics
- Unit tests for backup
- Unit tests for health check
- Integration tests with test database
- Target: >80% coverage
-
Frontend (React):
- Add Jest + React Testing Library
- Component tests for Dashboard, Login, Settings, Timeline
- API integration tests
- Target: >80% coverage
-
FFmpeg Processor:
- Unit tests for event saving, cleanup functions
- Mock FFmpeg subprocess calls
-
Add to CI pipeline:
- Coverage reporting (Codecov or similar)
- Fail build if coverage drops below 80%
Priority: HIGH
Test Coverage Gap
Current State: No tests exist in the codebase. Zero test coverage.
Required:
Backend (Python/FastAPI/Flask):
Frontend (React):
FFmpeg Processor:
Add to CI pipeline:
Priority: HIGH