// Automated test generation, review, and execution for pytest-based projects. Auto-activates on keywords test, coverage, pytest, unittest, integration test, e2e, performance, benchmark, security testing. Routes to specialized testing workflows based on user intent.
| name | testing |
| description | Automated test generation, review, and execution for pytest-based projects. Auto-activates on keywords test, coverage, pytest, unittest, integration test, e2e, performance, benchmark, security testing. Routes to specialized testing workflows based on user intent. |
| allowed-tools | Read, Write, Bash(pytest:*, coverage:*, find:*, grep:*), Task |
Comprehensive testing domain for pytest-based projects. Provides test generation, review, execution, and specialized testing workflows with automatic routing based on user intent.
This skill activates automatically when you mention:
Based on user intent, this skill routes to appropriate workflows:
Keywords: "generate tests", "create tests", "write tests", "test coverage"
/testing/generate workflowtest-engineer agentKeywords: "review tests", "test quality", "coverage gaps", "improve tests"
/testing/review workflowtest-engineer agentKeywords: "e2e test", "end-to-end", "full workflow", "integration test", "pipeline test"
/testing/e2e workflowtest-engineer agentKeywords: "performance test", "benchmark", "load test", "memory usage", "speed test"
/testing/performance workflowtest-engineer agentKeywords: "security test", "vulnerability", "penetration test", "OWASP", "injection"
/testing/security workflowsecurity-auditor agentKeywords: "run tests", "execute tests", "test results", "pytest command"
# Generate comprehensive tests
/testing/generate [module-path]
# Review test quality
/testing/review [test-directory]
# Create E2E tests
/testing/e2e [workflow-name]
# Create performance tests
/testing/performance [component]
# Create security tests
/testing/security [attack-vector]
For complex multi-step testing tasks, invoke the test-engineer agent via Task tool:
Use test-engineer agent when:
- Designing comprehensive test strategy across multiple components
- Creating complete test suites from scratch (unit + integration + e2e)
- Optimizing test performance and coverage simultaneously
- Integrating multiple testing types (functional + performance + security)
context/pytest-patterns.md for common test patternscontext/pytest-commands.md for frequently used commands/standards/python.md)/standards/python.md (80%+ coverage requirement)/standards/linting.md (pytest configuration)Required for all projects:
tests/unit/ (< 1s each)tests/integration/ (< 5s each)tests/e2e/ (marked @pytest.mark.e2e)Fixture management:
Test execution:
# Standard test run with coverage
poetry run pytest -v --cov=src --cov-report=html --cov-report=term-missing --cov-fail-under=80
# Fast dev cycle (skip slow tests)
poetry run pytest -m "not slow"
# Specific test categories
poetry run pytest tests/unit/ # Unit tests only
poetry run pytest tests/integration/ # Integration tests
poetry run pytest -m security # Security tests
poetry run pytest -m perf # Performance tests
Example 1: Generate tests for new module
User: "Generate comprehensive tests for the payment processor module"
→ Skill routes to /testing/generate workflow
→ Workflow creates unit, integration, and security tests
→ Ensures 80%+ coverage for payment processor
Example 2: Review test quality
User: "Review the tests for the authentication system and suggest improvements"
→ Skill routes to /testing/review workflow
→ Workflow analyzes coverage, patterns, fixture usage
→ Provides actionable recommendations
Example 3: Complex test strategy
User: "Design a comprehensive testing strategy for the new RAG pipeline"
→ Skill invokes test-engineer agent
→ Agent creates multi-tier testing approach:
- Unit tests for embeddings, chunking, retrieval
- Integration tests for pipeline flows
- E2E tests for complete query-response cycles
- Performance tests for large document handling
This skill consolidates test-generator, test-reviewer, e2e-tester, performance-tester, and security-tester into a unified testing domain with intelligent routing.