Backend
- Run:
cd notebook-mlx-app/backend && pytest. - Coverage: enforced at 80% via
pytest.ini(pytest-cov). - Tests:
tests/test_app.py: root healthtests/test_openapi.py: OpenAPI contracttests/test_endpoints.py: health/metrics, download sanitization, text upload鈫抍hat, chunked upload鈫抦erge, TTS guards
- CI disables ML imports with
DISABLE_ML_IMPORTS=1and uses lightweight stubs.
Frontend
- E2E: Playwright; config at
playwright.config.ts, tests infrontend/e2e/. - Run:
pnpm dlx playwright install && pnpm run build && pnpm run test:e2e. - CI uploads HTML report artifact.
Workflow
.github/workflows/ci.ymlruns pre-commit lint, backend tests, type-check/build, and E2E.