pytest-runner
Skill14 starsChanged 37 days agoMITView on GitHub
Execute and analyze pytest-based tests. Includes coverage reports, failure analysis, and fixture debugging.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- saleor/saleortheir own version, first seen Oct 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- saleor/saleor★ 24ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository44 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- adaptSkill
- animateSkill
- auditSkill
- bolderSkill
- brainstormSkill
- build-fixSkill
- business-panelSkill
- checkpointSkill
- clarifySkill
- colorizeSkill
- composition-patternsSkill
- confidence-checkSkill
- config-doctorSkill
- critiqueSkill
- delightSkill
- design-auditSkill
- devils-advocateSkill
- distillSkill
- eval-harnessSkill
- feature-plannerSkill
- fix-prSkill
- frontend-designSkill
- gap-analysisSkill
- grill-with-docsSkill
- hardenSkill
- impeccableSkill
- layoutSkill
- learnSkill
- optimizeSkill
- overdriveSkill
- polishSkill
- python-best-practicesSkill
- quieterSkill
- react-best-practicesSkill
- sc-helpSkill
- security-auditSkill
- shapeSkill
- tddSkill
- typesetSkill
- ui-ux-pro-maxSkill
- uv-packageSkill
- verifySkill
- web-design-guidelinesSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Auto-invoke: when test execution is requested
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Pytest Runner Skill
Purpose
Execute and analyze tests for Python projects.
When to Use
- Auto-invoke when test execution is requested
- Triggered by keywords: "run tests", "pytest", "test"
- Local test verification before CI/CD
Execution Modes
1. Quick Test
pytest -x -q
# Stop at first failure, minimal output2. Full Test with Coverage
pytest --cov=src --cov-report=term-missing --cov-report=html
# Full test suite + coverage report3. Specific Test
pytest tests/test_api.py::test_create_user -v
# Run specific test only4. Failed Only
pytest --lf
# Re-run only last failed testsOutput Format
All Pass
🧪 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%With Failures
🧪 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 logicCoverage Analysis
Minimum Thresholds
coverage:
minimum: 80% # Overall minimum
critical_paths:
- src/api.py: 90%
- src/auth.py: 95%
- src/models.py: 85%Uncovered Lines Report
📋 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 Analysis
Fixture Dependencies
📦 Fixture Graph:
db_session
└─→ test_user
└─→ authenticated_client
└─→ admin_client
⚠️ Warning: Deep fixture chain (4 levels)
→ Verify test isolationSlow Fixtures
⏱️ 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 scopeIntegration
# 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 -- --lfCommands
| 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 |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

