Add comprehensive documentation for CalMiner, including architecture, development setup, MVP features, implementation plan, and testing strategy

This commit is contained in:
2025-10-20 16:25:39 +02:00
parent 218b0ba58d
commit 328910a985
6 changed files with 236 additions and 0 deletions

29
docs/testing.md Normal file
View File

@@ -0,0 +1,29 @@
# Testing Strategy
## Overview
CalMiner will use a combination of unit, integration, and end-to-end tests to ensure quality.
## Frameworks
- **Backend**: pytest for unit and integration tests.
- **Frontend**: (TBD) pytest with Selenium or Playwright.
- **Database**: pytest fixtures with psycopg2 for DB tests.
## Test Types
- **Unit Tests**: Test individual functions/modules.
- **Integration Tests**: Test API endpoints and DB interactions.
- **E2E Tests**: (Future) Playwright for full user flows.
## CI/CD
- Use GitHub Actions for CI.
- Run tests on pull requests.
- Code coverage target: 80% (using pytest-cov).
## Running Tests
- Unit: `pytest tests/unit/`
- Integration: `pytest tests/integration/`
- All: `pytest`