test-run

Solid

Run plugin test suites in this monorepo and report a concise pass/fail summary. Optional plugin slug arg; without arg, runs all plugins under plugins/.

AI & Automation 68 stars 11 forks Updated today MIT

Install

View on GitHub

Quality Score: 80/100

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

Skill Content

# Test Run Run plugin test suites and report a concise summary. Operates on a single plugin when given a slug; otherwise loops every plugin in `plugins/`. ## Usage `/test-run` — run tests for every plugin in `plugins/` and report a per-plugin summary plus an overall PASS/FAIL. `/test-run <plugin-slug>` — run tests for just that plugin. Examples: - `/test-run claude-code-hermit` - `/test-run claude-code-homeassistant-hermit` ## Steps ### 0. Resolve target slugs - If a slug arg was passed, validate `plugins/<slug>/.claude-plugin/plugin.json` exists. If not, abort with: `Plugin 'plugins/<slug>/' not found. Available: <comma-separated slugs>.` - If no slug, glob `plugins/*/.claude-plugin/plugin.json` and collect the directory names. Run tests for each in sequence. ### 1. Run each suite (per slug) Plugins ship one of two test conventions. Detect and dispatch: - **Bash entrypoint** — if `plugins/<slug>/tests/run-all.sh` exists (dev/fitness/scribe/forge convention): ```bash bash plugins/<slug>/tests/run-all.sh 2>&1 ``` - **Bun entrypoint** — else if any `plugins/<slug>/tests/*.test.ts` exists (core/HA convention): `cd plugins/<slug> && bun test 2>&1`. - **Neither marker** — mark `no tests configured` and continue. Capture full output. Extract pass/fail counts from each suite's summary line. ### 2. Report Per-plugin block: ``` === <slug> === Hook tests: X passed, Y failed (bash convention only) Contract tests: X passed, Y failed (bash conventi...

Details

Author
gtapps
Repository
gtapps/claude-code-hermit
Created
4 months ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category