Agent skill
context-testing-infrastructure
Tiered testing strategy (UI mock, auth stub, full-stack), fixtures, mocks, and test configuration. Handles test setup, Playwright E2E tests, pytest backend tests, mocking strategies, and CI test configuration. Use when working with tests, test setup, mocking strategies, or CI test configuration, or when user mentions test patterns, auth stub, fixture loaders, Playwright tests, test failures, tiered testing, UI mock, E2E tests, pytest, vitest, or debugging test issues.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/testing/context-testing-infrastructure-stars-end-affordabot
SKILL.md
Testing Infrastructure
Navigate tiered testing strategy (ui-mock, auth-stub, full-stack), fixtures, and configs.
Overview
Three-tier testing strategy for speed/isolation balance. See docs/testing/STRATEGY.md.
E2E Test Tiers
Tier 1: UI Mock
- Location:
frontend/e2e-tiers/tier-ui-mock/ - Speed: <5s
- Purpose: UI-only, no backend
Tier 2: Auth Stub
- Location:
frontend/e2e-tiers/tier-auth-stub/ - Speed: <30s
- Purpose: Real frontend + stubbed auth
Tier 3: Full Stack
- Location:
frontend/e2e-tiers/tier-full-stack/ - Speed: ~60s+
- Purpose: Complete integration
E2E Tests
frontend/e2e/*.spec.ts- Main E2E testsfrontend/e2e-smoke/*.spec.ts- Smoke tests
Backend Tests
backend/tests/unit/- Unit testsbackend/tests/integration/- Integration testsbackend/tests/manual/- Manual testsbackend/tests/conftest.py- Pytest fixturesbackend/tests/fixtures/- Mock fixtures
Test Utilities
scripts/lib/db_test_utils.py- Database utilitiesscripts/test_*.py- Test helpersscripts/quick_fix_test_data.py- Quick data generationscripts/generate-dev-data.ts- Dev data seedingfrontend/src/test-utils/- Frontend test utilities
Smoke Tests
backend/smoke_endpoints.py- Backend health checksfrontend/e2e-smoke/- Frontend smoke tests
Configuration
frontend/playwright*.config.ts- Playwright configspytest.ini- Pytest configurationfrontend/vitest.config.ts- Vitest config (if used)
Documentation
- Internal:
docs/testing/STRATEGY.md
Related Areas
- See
context-plaid-integrationfor Plaid test patterns - See
context-clerk-integrationfor auth stub patterns - See
context-infrastructurefor CI integration
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?