What problem does it solve?
This Skill automates Python testing workflows, enabling efficient test coverage, testing strategies, and CI test configuration for pytest and comprehensive test automation.
Core Features & Use Cases
- Test-First Development: Encourages writing tests before implementation, ensuring executable specifications.
- Unit Test Pattern: Provides a template for unit testing with pytest, including mock objects and assertions.
- Integration Test Pattern: Offers a pattern for integration testing with an example using an HTTP API.
- Fixtures: Utilizes fixtures for common setup and authentication headers in integration tests.
- pytest.ini Configuration: Configures pytest for coverage, reporting, and markers.
- Test Commands: Lists various commands for running tests, including coverage and specific test file execution.
- cURL Testing Scripts: Includes a cURL script for testing API endpoints.
- Best Practices: Outlines best practices for writing tests, including single responsibility, descriptive names, and mocking.
- Working with Other Agents: Describes how this Skill interacts with other agents like the python-backend and test-coordinator.
Quick Start
Use the python-test-engineer skill to run all tests in the 'tests' directory.