Spaces:
Sleeping
Sleeping
File size: 559 Bytes
343eed9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # Testing Strategy
## Unit Tests
- Located in `tests/` directory.
- Use **FastAPI TestClient** (built on `requests`) and **pytest**.
- Coverage includes:
- System stats (`/api/system`).
- Engine flag persistence (`/api/engine/control`).
- TTS preview with and without narration.
- Story launch flow.
## Running Tests
```bash
pip install -r requirements.txt # includes pytest
pytest -v
```
## CI Integration
- GitHub Actions workflow (`.github/workflows/ci.yml`) runs `pytest --cov=.` on every PR.
- Fails the build if coverage drops below 80 %. |