jmagly/aiwg/pytest-runner
Claude Code and agent skill by jmagly/aiwg
- community
Checking that the SKILL.md file is still in the repository.
Execute Python tests with pytest, supporting fixtures, markers, coverage, and parallel execution. Use for Python test automation.
Install
npx vskill@latest install jmagly/aiwg/pytest-runnerSKILL.md
Pytest Runner Skill
Purpose
Single responsibility: Execute and manage pytest test suites with proper configuration, coverage reporting, and failure analysis. (BP-4)
Grounding Checkpoint (Archetype 1 Mitigation)
Before executing, VERIFY:
- [ ] Python virtual environment is active or available
- [ ] pytest is installed (
pip show pytest) - [ ] Test directory exists with test files
- [ ] pytest.ini or pyproject.toml configured (optional)
DO NOT run tests without verifying environment.
Uncertainty Escalation (Archetype 2 Mitigation)
ASK USER instead of guessing when:
- Multiple test directories detected - which to run?
- Coverage threshold unclear
- Parallel execution appropriate?
- Specific markers or keywords needed?
NEVER modify test configurations without user approval.
Context Scope (Archetype 3 Mitigation)
| Context Type | Included | Excluded | |
|---|---|---|---|
| RELEVANT | Test files, pytest config, fixtures | Application code details | |
| PERIPHERAL | Coverage reports, test markers | CI/CD pipelines | |
| DISTRACTOR | Other language tests | Deployment configs |
Workflow Steps
Step 1: Environment Check (Grounding)
Step 2: Discover Tests
Step 3: Execute Tests
Basic execution:
With coverage:
Parallel execution:
With markers:
Step 4: Analyze Results
Recovery Protocol (Archetype 4 Mitigation)
On error:
- PAUSE - Capture test output
- DIAGNOSE - Check error type:
ImportError→ Check dependencies, PYTHONPATHFixtureError→ Check conftest.pyCollectionError→ Check test file syntaxTimeout→ Reduce test scope or add markers
- ADAPT - Adjust test selection or configuration
- RETRY - With narrower scope (max 3 attempts)
- ESCALATE - Report failures with context
Checkpoint Support
State saved to: .aiwg/working/checkpoints/pytest-runner/
Common Pytest Options
| Option | Purpose | |
|---|---|---|
-v | Verbose output | |
-x | Stop on first failure | |
-s | Show print statements | |
--lf | Run last failed tests | |
--ff | Run failed tests first | |
-k "pattern" | Filter by name pattern | |
-m "marker" | Filter by marker | |
--tb=short | Shorter tracebacks |
Configuration Templates
pytest.ini:
pyproject.toml:
References
- pytest documentation: https://docs.pytest.org/
- REF-001: Production-Grade Agentic Workflows (BP-4 single responsibility)
- REF-002: LLM Failure Modes (Archetype 1 grounding)
Security
- Security scanPassed, 96 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagentic/code/frameworks/sdlc-complete/extensions/python/skills/pytest-runner/SKILL.md
Popularity
- Repository stars
- 127
- Repository forks
- 18
- Repository npm downloads, 7 days
- 1,916
- 7-day trend score
- 43
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 2 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jmagly/aiwg/pytest-runner)