skills/pytest-runner/SKILL.md
Execute and analyze pytest-based tests. Includes coverage reports, failure analysis, and fixture debugging.
npx skillsauth add excatt/superclaude-plusplus pytest-runnerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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 |
testing
사용자 계획을 기존 도메인 모델에 대해 stress-test하는 인터뷰 세션. 용어를 날카롭게 다듬고, 결정이 굳어질 때마다 CONTEXT.md(도메인 어휘 사전)와 ADR을 인라인으로 갱신한다. 새 기능 요구사항 탐색은 `/brainstorm`을, 기존 도메인 모델·용어와의 정합성 점검은 이 스킬을 사용한다.
development
# Excel (XLSX) Spreadsheet Skill Claude Code supports comprehensive spreadsheet operations through the **xlsx** skill, enabling creation, editing, and analysis of Excel files (.xlsx, .xlsm, .csv, .tsv). ## Trigger - When user needs Excel spreadsheet creation or editing - Financial modeling or data analysis required - Spreadsheet formulas and calculations needed - Data import from CSV/TSV files ## Core Capabilities **Primary functions include:** - Creating new spreadsheets with formulas and f
tools
Generate structured implementation workflows from PRDs and feature requirements
development
실시간 통신 설계 가이드를 실행합니다.