aiskillstore/marketplace / skills/0xdarkmatter/testing-patterns
testing-patterns
VerifiedCross-language testing strategies and patterns. Triggers on: test pyramid, unit test, integration test, e2e test, TDD, BDD, test coverage, mocking strategy, test doubles, test isolation.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.1 KB |
| references/ci-testing.md | markdown | 6.9 KB |
| references/mocking-strategies.md | markdown | 7.0 KB |
| references/tdd-workflow.md | markdown | 5.2 KB |
| references/test-data-patterns.md | markdown | 6.4 KB |
| scripts/coverage-check.sh | script | 762 B |
| skill-report.json | config | 39.5 KB |
scripts/coverage-check.sh
View on GitHub#!/bin/bash
# Run tests with coverage and fail if below threshold
# Usage: ./coverage-check.sh [--threshold 80] [pytest-args...]
set -e
THRESHOLD=80
PYTEST_ARGS=""
# Parse arguments
while [[ $# -gt 0 ]]; do
case $1 in
--threshold)
THRESHOLD="$2"
shift 2
;;
*)
PYTEST_ARGS="$PYTEST_ARGS $1"
shift
;;
esac
done
echo "=== Running tests with coverage ==="
echo "Minimum coverage threshold: ${THRESHOLD}%"
echo ""
# Run pytest with coverage
pytest \
--cov=src \
--cov-report=term-missing \
--cov-report=html \
--cov-fail-under=${THRESHOLD} \
${PYTEST_ARGS}
echo ""
echo "=== Coverage report generated ==="
echo "HTML report: htmlcov/index.html"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |