test-harness
Installation
SKILL.md
Test Harness
Systematic test suite generation that transforms source code into comprehensive, runnable pytest files. Analyzes function signatures, dependency graphs, and complexity hotspots to produce tests covering happy paths, boundary conditions, error states, and async flows — with properly scoped fixtures and focused mocks.
Reference Files
| File | Contents | Load When |
|---|---|---|
references/pytest-patterns.md |
Fixture scopes, parametrize, marks, conftest layout, built-in fixtures | Always |
references/mock-strategies.md |
Mock decision tree, patch boundaries, assertions, anti-patterns | Target has external dependencies |
references/async-testing.md |
pytest-asyncio modes, event loop fixtures, async mocking | Target contains async code |
references/fixture-design.md |
Factory fixtures, yield teardown, scope selection, composition | Test requires non-trivial setup |
references/coverage-targets.md |
Threshold table, branch vs line, pytest-cov config, exclusion patterns | Coverage assessment requested |