Tests

Backend (pytest)

pytest backend/tests/
pytest backend/tests/test_api.py
pytest backend/tests/test_api.py::test_fn

Frontend (vitest)

cd frontend
npm run test
npm run test:coverage

Recommendations

  • Add at least one regression test for each fix.

  • Cover critical API paths (documents, compute, variables).

Important

When a defect is fixed, add the regression test in the same change set to protect the behavior in CI.