Nm Pensive Test Review
by @athola
Evaluates test suites for coverage gaps, TDD/BDD compliance, and anti-patterns
clawhub install nm-pensive-test-reviewπ About This Skill
name: test-review description: Evaluate test suites for coverage gaps, quality issues, and TDD/BDD compliance version: 1.9.4 triggers: - testing - tdd - bdd - coverage - quality - fixtures metadata: {"openclaw": {"homepage": "https://github.com/athola/claude-night-market/tree/master/plugins/pensive", "emoji": "\ud83e\uddea", "requires": {"config": ["night-market.pensive:shared", "night-market.imbue:proof-of-work"]}}} source: claude-night-market source_plugin: pensive
> Night Market Skill β ported from claude-night-market/pensive. For the full experience with agents, hooks, and commands, install the Claude Code plugin.
Table of Contents
test-review:languages-detected))test-review:coverage-inventoried))test-review:scenario-quality))test-review:gap-remediation))test-review:evidence-logged))Test Review Workflow
Evaluate and improve test suites with TDD/BDD rigor.
Quick Start
/test-review
Verification: Run pytest -v to verify tests pass.When To Use
When NOT To Use
Required TodoWrite Items
1. test-review:languages-detected
2. test-review:coverage-inventoried
3. test-review:scenario-quality
4. test-review:gap-remediation
5. test-review:evidence-logged
Progressive Loading
Load modules as needed based on review depth:
modules/framework-detection.mdmodules/coverage-analysis.mdmodules/scenario-quality.mdmodules/remediation-planning.mdWorkflow
Step 1: Detect Languages (test-review:languages-detected)
Identify testing frameworks and version constraints.
β See: modules/framework-detection.md
Quick check:
find . -maxdepth 2 -name "Cargo.toml" -o -name "pyproject.toml" -o -name "package.json" -o -name "go.mod"
Verification: Run the command with --help flag to verify availability.Step 2: Inventory Coverage (test-review:coverage-inventoried)
Run coverage tools and identify gaps.
β See: modules/coverage-analysis.md
Quick check:
git diff --name-only | rg 'tests|spec|feature'
Verification: Run pytest -v to verify tests pass.Step 3: Assess Scenario Quality (test-review:scenario-quality)
Evaluate test quality using BDD patterns and assertion checks.
β See: modules/scenario-quality.md
Focus on:
Step 4: Plan Remediation (test-review:gap-remediation)
Create concrete improvement plan with owners and dates.
β See: modules/remediation-planning.md
Step 5: Log Evidence (test-review:evidence-logged)
Record executed commands, outputs, and recommendations.
β See: imbue:proof-of-work
Test Quality Checklist (Condensed)
Output Format
## Summary
[Brief assessment]Framework Detection
Languages: [list] | Frameworks: [list] | Versions: [constraints] Coverage Analysis
Overall: X% | Critical: X% | Gaps: [list] Quality Issues
[Q1] [Issue] - Location - FixRemediation Plan
1. [Action] - Owner - DateRecommendation
Approve / Approve with actions / Block
Verification: Run the command with --help flag to verify availability.Integration Notes
imbue:proof-of-work for reproducible evidence captureimbue:diff-analysis for risk assessmentimbue:structured-output patternsExit Criteria
Troubleshooting
Common Issues
Tests not discovered
Ensure test files match pattern test_*.py or *_test.py. Run pytest --collect-only to verify.
Import errors
Check that the module being tested is in PYTHONPATH or install with pip install -e .
Async tests failing
Install pytest-asyncio and decorate test functions with @pytest.mark.asyncio
β‘ When to Use
π‘ Examples
/test-review
Verification: Run pytest -v to verify tests pass.π Tips & Best Practices
Common Issues
Tests not discovered
Ensure test files match pattern test_*.py or *_test.py. Run pytest --collect-only to verify.
Import errors
Check that the module being tested is in PYTHONPATH or install with pip install -e .
Async tests failing
Install pytest-asyncio and decorate test functions with @pytest.mark.asyncio