Custom test patterns and fixtures for {project}. Covers E2E, integration, and specialized testing requirements.
Custom testing patterns, fixtures, and strategies for this project.
| Variable | Default | Description | |----------|---------|-------------| | COVERAGE_TARGET | 80 | Minimum coverage percentage | | E2E_TIMEOUT | 30000 | E2E test timeout in ms | | PARALLEL_TESTS | true | Run tests in parallel when possible |
If you're about to:
STOP -> Use proper fixtures -> Ensure isolation -> Then write test
Location: tests/unit/
Patterns:
Location: tests/integration/
Patterns:
Location: tests/e2e/ or playwright/
Patterns:
Location: tests/fixtures/
Usage:
# Python example
from tests.fixtures import sample_user, sample_order
def test_order_creation(sample_user, sample_order):
# Test uses pre-configured fixtures
pass
Location: tests/mocks/
Available mocks:
| Test Type | File Pattern | Function Pattern |
|-----------|-------------|------------------|
| Unit | test_*.py | test_<function>_<scenario> |
| Integration | test_*_integration.py | test_<component>_<action> |
| E2E | *.spec.ts | test('<feature> - <scenario>') |
| Component | Minimum Coverage | |-----------|-----------------| | Core logic | 90% | | API routes | 80% | | Utilities | 70% |
Tests run in CI:
Edit this file to add:
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer