pytest
for backend unit and integration tests. - Use pytest-cov
for coverage reports, target 85%+. - Use Playwright
or Vitest
for frontend/UI tests. - Separate test configuration (e.g. test_settings.py
). - Prefer integration tests over excessive mocking. - Mock external services (e.g. Stripe, email) when necessary.