Files
remotion_service/.claude/rules/testing.md
T
Daniil e6bfe7c946 feat: upgrade agent team with browser, MCP, CLI tools, rules, and hooks
- Add Chrome browser access to 6 visual agents (18 tools each)
- Add Playwright access to 2 testing agents (22 tools each)
- Add 4 MCP servers: Postgres Pro, Redis, Lighthouse, Docker (.mcp.json)
- Add 3 new rules: testing.md, security.md, remotion-service.md
- Add Context7 library references to all domain agents
- Add CLI tool instructions per agent (curl, ffprobe, k6, semgrep, etc.)
- Update team protocol with new capabilities column
- Add orchestrator dispatch guidance for new agent capabilities
- Init git repo tracking docs + Claude config only

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 22:46:16 +03:00

834 B

Testing Conventions

Backend Tests

  • Real DB + real Redis. No mocks. conftest.py has shared fixtures.
  • Location: cofee_backend/tests/integration/.py
  • Naming: test__ (e.g., test_create_project_without_name)
  • Run: cd cofee_backend && uv run pytest
  • Single test: uv run pytest -k "test_name"
  • API fuzzing: cd cofee_backend && uv run --group tools schemathesis run http://localhost:8000/api/schema/ --checks all

Frontend E2E Tests

  • Playwright with data-testid selectors on every interactive element
  • Location: cofee_frontend/tests/
  • Run: cd cofee_frontend && bun run test:e2e
  • Every component root element must have data-testid

General

  • Never mock the database — use real test DB
  • Tests must be deterministic — no Date.now(), no Math.random()
  • Test error paths, not just happy paths