Test Runner
Description
Run Python tests with pytest, unittest, or other testing frameworks.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
Repository README
This is the README for davila7/claude-code-templates, shared by 7 entries
in this directory. It describes the repository, not this entry specifically.
Test Runner
Run Python tests with pytest, unittest, or other testing frameworks.
Purpose
This command helps you run Python tests effectively with proper configuration and reporting.
Usage
/test
What this command does
- Detects test framework (pytest, unittest, nose2)
- Runs appropriate tests with proper configuration
- Provides coverage reporting if available
- Shows clear test results with failure details
Example Commands
pytest (recommended)
# Run all tests
pytest
# Run with coverage
pytest --cov=src --cov-report=html
# Run specific test file
pytest tests/test_models.py
# Run with verbose output
pytest -v
# Run tests matching pattern
pytest -k "test_user"
unittest
# Run all tests
python -m unittest discover
# Run specific test file
python -m unittest tests.test_models
# Run with verbose output
python -m unittest -v
Django tests
# Run all Django tests
python manage.py test
# Run specific app tests
python manage.py test myapp
# Run with coverage
coverage run --source='.' manage.py test
coverage report
Best Practices
- Write tests for all critical functionality
- Use descriptive test names
- Keep tests isolated and independent
- Mock external dependencies
- Aim for high test coverage (80%+)
Related Skills
Spec Kit
💫 Toolkit to help you get started with Spec-Driven Development
Testing Webapp Testing
Test local web applications using Playwright for UI verification and debugging
Testing #29
, [#52](https://github.com/affaan-m/everything-claude-code/issues/52), [#103](https://github.com/affaan-m/ever
Testing Fix Issue
by metabase - Addresses GitHub issues by taking issue number as parameter, analyzing context, implementing sol
Testing Pypict Test Design
Design comprehensive test cases using PICT (Pairwise Independent Combinatorial Testing) for optimized test sui
Testing gstack
| 15,000+ | Garry Tan's exact Claude Code setup: 6 opinionated tools that serve as CEO, Eng Manager, Release M
Testing