arbret/.cursor/rules/running_tests.mdc

15 lines
543 B
Text
Raw Permalink Normal View History

2025-12-20 19:09:33 +01:00
---
description: How to run tests
alwaysApply: false
---
There are backend, frontend and e2e tests.
They should be run with the `test-` commands found in the `Makefile`.
Use the `TEST` variable to select specific tests:
- Backend: `make test-backend TEST="tests/test_booking.py"` or `TEST="tests/test_booking.py::TestClass::test_method"`
- Frontend: `make test-frontend TEST="app/login"` (file pattern)
- E2E: `make test-e2e TEST="auth"` (matches e2e/auth.spec.ts)
- Don't use `tail`. Let the output hit the console when running the tests.