What problem does it solve?
This Skill streamlines the process of writing, running, and managing tests for software projects across various programming languages and testing frameworks.
Core Features & Use Cases
- Cross-Language Support: Provides guidance and commands for testing in TypeScript/JavaScript (Vitest, Jest), Python (pytest), Swift (XCTest), and End-to-End (Playwright).
- Framework Selection: Offers recommendations for unit, integration, and E2E testing tools.
- TDD Workflow Guidance: Outlines the Red-Green-Refactor cycle.
- Test Patterns: Demonstrates common testing patterns like Arrange-Act-Assert, async testing, mocking, and API endpoint testing.
- Coverage Analysis: Includes commands for generating and viewing test coverage reports.
- Use Case: A developer needs to set up a testing suite for a new Python backend service. This Skill provides the exact commands to install pytest, configure coverage, and run tests for API endpoints.
Quick Start
Use the test-runner skill to run all pytest tests in the 'tests/' directory.