pytest-runner

Solid

Execute Python tests with pytest, supporting fixtures, markers, coverage, and parallel execution. Use for Python test automation.

Testing & QA 183 stars 39 forks Updated 1 months ago MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
75
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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) ```bash # Verify virtual environment if [ -z "$VIRTUAL_ENV" ]; then # Activate if exists if [ -f "venv/bin/activate" ]; then source venv/bin/activate elif [ -f ".venv/bin/activate" ]; then source .venv/bin/activate else echo "WARNING: No virtual environment active" fi fi # Veri...

Details

Author
majiayu000
Repository
majiayu000/claude-skill-registry
Created
5 months ago
Last Updated
1 months ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category