test-writer

Generate pytest test skeletons with fixtures, parametrization, and mocks for Python functions and classes.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/fernando-fernandez3/claude-code-resources --skill test-writer-fernando-fernandez3
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-writer
Source: https://github.com/fernando-fernandez3/claude-code-resources/tree/main/my-config/skills/test-writer
Command: npx skills add https://github.com/fernando-fernandez3/claude-code-resources --skill test-writer-fernando-fernandez3

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing unit tests for Python code is repetitive and error-prone. This Skill automatically generates pytest tests for Python functions and classes, improving coverage and reliability.

Core Features & Use Cases

  • Test generation: Create comprehensive pytest tests for functions, methods, and classes.
  • Fixtures & parametrization: Provide fixture scaffolds and parameterized tests to cover diverse inputs.
  • Use Case: When asked to test a new module, generate a complete test suite skeleton ready to run with pytest.

Quick Start

Request test generation for a module, and the Skill will output a tests/test_module.py with representative test cases.

Frequently Asked Questions about test-writer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I auto-generate pytest tests for Python functions and classes?

To auto-generate pytest tests for Python functions and classes, provide your module to the test generator. It produces an integration-ready tests/test_module.py file with representative test cases aligned with pytest conventions.

Can I generate pytest fixtures and parametrized tests automatically?

Yes, you can generate pytest fixtures and parametrized tests automatically. The skill provides fixture scaffolds and parameterized test cases to cover diverse inputs across your modules and packages.

Does this test generation tool support mocking for Python unit tests?

Yes, this test generation tool supports mocking for Python unit tests. It targets typical unit testing scenarios by producing test skeletons and named test cases that incorporate mocks alongside fixtures and parametrization.

What is the best way to create a pytest test suite skeleton for a new module?

The best way to create a pytest test suite skeleton for a new module is to request test generation. The skill outputs a complete test file with named test cases, ready to run with pytest to improve coverage and reliability.

Do I need to manually configure pytest conventions when generating test files?

No, you do not need to manually configure pytest conventions when generating test files. The skill produces integration-ready test files that explicitly align with pytest conventions, including standard naming and structural formats.