Help us improve
Share bugs, ideas, or general feedback.
From pythonic
Comprehensive testing with pytest including unit tests, integration tests, fixtures, and coverage reporting.
npx claudepluginhub jwplatta/agent-cubicle --plugin pythonicHow this skill is triggered — by the user, by Claude, or both
Slash command
/pythonic:python-testingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Comprehensive testing with pytest including unit tests, integration tests, fixtures, and coverage reporting.
Provides pytest guidance for Python testing: fixtures, parametrization, coverage, mocking, markers, async tests, conftest.py, and TDD workflows.
Provides pytest patterns for Python testing: fixtures, parametrization, mocking, markers, and exception testing. Useful when writing or reviewing unit/integration tests.
Guides Python testing with pytest: TDD cycle, fixture patterns, mocking, parametrization, and 80%+ coverage targets. Activates when writing Python tests or setting up coverage infrastructure.
Share bugs, ideas, or general feedback.
Comprehensive testing with pytest including unit tests, integration tests, fixtures, and coverage reporting.
Use this skill when:
Test Execution
Test Coverage
Test Writing
Test Organization
This skill references the following context files in this directory:
pytest-configuration.md - Pytest setup and configurationtest-patterns.md - Common testing patterns and examplesfixtures-guide.md - Using pytest fixturescoverage-guide.md - Code coverage best practices# Run tests
uv run pytest # All tests
uv run pytest tests/test_file.py # Specific file
uv run pytest -k "pattern" # Tests matching pattern
uv run pytest --lf # Last failed only
# Coverage
uv run pytest --cov # With coverage
uv run pytest --cov --cov-report=html # HTML report
uv run pytest --cov --cov-report=term-missing # Show missing lines
# Output control
uv run pytest -v # Verbose
uv run pytest -s # Show print statements
uv run pytest -x # Stop on first failure
def test_addition():
assert add(2, 3) == 5
assert add(-1, 1) == 0
@pytest.fixture
def sample_data():
return {"key": "value"}
def test_with_fixture(sample_data):
assert sample_data["key"] == "value"
@pytest.mark.parametrize("input,expected", [
(2, 4),
(3, 9),
(4, 16),
])
def test_square(input, expected):
assert square(input) == expected
After using this skill:
python-project-setup for test directory structurepython-code-quality for comprehensive QApython-project-setup agent for automated testing