| name | test-writer |
| description | Generate comprehensive pytest test cases from source code |
| license | MIT |
Test Writer Skill
Generate tests using pytest following these principles:
- Structure -- one test module per source module, mirroring the package layout.
- Fixtures -- use
@pytest.fixture for shared setup; prefer factory fixtures over complex state.
- Coverage -- test happy path, error cases, and boundary conditions for every public function.
- Parametrize -- use
@pytest.mark.parametrize when testing multiple inputs for the same logic.
- Async -- use
async def test_... directly (asyncio_mode = "auto"), no decorator needed.
Refer to the patterns reference for reusable fixture and assertion templates.