Comprehensive testing with pytest including unit tests, integration tests, fixtures, and coverage reporting.
From pythonicnpx claudepluginhub jwplatta/agent-cubicle --plugin pythonicThis skill uses the workspace's default tool permissions.
pytest-configuration.mdSearches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Verifies tests pass on completed feature branch, presents options to merge locally, create GitHub PR, keep as-is or discard; executes choice and cleans up worktree.
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