/superclaude-plusplus:pytest-runnerfrom superclaude-plusplus
Executes and analyzes pytest-based tests with coverage reports, failure analysis, and fixture debugging. Auto-invoked on test execution requests.
Ships in superclaude-plusplus. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Execute and analyze tests for Python projects.
pytest -x -q
# Stop at first failure, minimal output
pytest --cov=src --cov-report=term-missing --cov-report=html
# Full test suite + coverage report
pytest tests/test_api.py::test_create_user -v
# Run specific test only
pytest --lf
# Re-run only last failed tests
🧪 PYTEST RESULTS
=================
✅ All tests passed!
📊 Summary:
Tests: 47 passed
Time: 3.2s
Coverage: 87%
📈 Coverage by Module:
src/api.py 92%
src/models.py 95%
src/utils.py 78% ⚠️
src/db.py 85%
🧪 PYTEST RESULTS
=================
❌ 3 tests failed
📊 Summary:
Tests: 44 passed, 3 failed
Time: 4.1s
🔴 Failures:
1. test_api.py::test_create_user_invalid_email
├─ Expected: ValidationError
└─ Got: None
💡 Fix: Check email validation logic
📍 Location: src/api.py:45
2. test_db.py::test_connection_timeout
├─ Expected: TimeoutError after 5s
└─ Got: Hung indefinitely
💡 Fix: Verify DB connection timeout setting
3. test_utils.py::test_parse_date
├─ Expected: datetime(2024, 1, 15)
└─ Got: ValueError
💡 Fix: Check date format parsing logic
coverage:
minimum: 80% # Overall minimum
critical_paths:
- src/api.py: 90%
- src/auth.py: 95%
- src/models.py: 85%
📋 Uncovered Code:
src/utils.py (78% covered):
Lines 45-52: Error handling branch
Lines 78-85: Edge case for empty input
💡 Tests needed:
- test_parse_with_empty_input()
- test_parse_with_invalid_format()
📦 Fixture Graph:
db_session
└─→ test_user
└─→ authenticated_client
└─→ admin_client
⚠️ Warning: Deep fixture chain (4 levels)
→ Verify test isolation
⏱️ Slow Fixtures:
| Fixture | Avg Time | Usage |
|---------|----------|-------|
| db_session | 0.8s | 32 tests |
| redis_client | 0.5s | 12 tests |
| mock_api | 0.3s | 8 tests |
💡 Optimization: Consider changing db_session to module scope
# Pre-commit hook
pytest --co -q && pytest -x
# CI pipeline
pytest --cov --cov-fail-under=80 --junitxml=report.xml
# Watch mode (with pytest-watch)
ptw -- --lf
| Command | Description |
|---|---|
/pytest | Run all tests |
/pytest --quick | Quick test (-x -q) |
/pytest --cov | Include coverage |
/pytest --failed | Re-run failed only |
/pytest [path] | Run specific path |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub excatt/superclaude-plusplus --plugin superclaude-plusplus44 skills in this plugin
/adaptAdapt designs to work across different screen sizes, devices, contexts, or platforms. Implements breakpoints, fluid layouts, and touch targets. Use when the user mentions responsive design, mobile layouts, breakpoints, viewport adaptation, or cross-device compatibility./animateReview a feature and enhance it with purposeful animations, micro-interactions, and motion effects that improve usability and delight. Use when the user mentions adding animation, transitions, micro-interactions, motion design, hover effects, or making the UI feel more alive./auditRun project-specific verification rules (business logic, architecture patterns, naming) that linters cannot catch; bootstraps rules if none exist. Not for build/lint/test (/verify)./bolderAmplify safe or boring designs to make them more visually interesting and stimulating. Increases impact while maintaining usability. Use when the user says the design looks bland, generic, too safe, lacks personality, or wants more visual impact and character./brainstormInteractive requirements discovery through Socratic dialogue and systematic exploration/build-fixExpert skill for resolving build errors with minimal change principle. Use for build failures, type errors, compile errors. Keywords: build, fix, error, compile, typescript, type, resolve.Other plugins' skills for the same job