Run comprehensive tests on plugin components using the modular test runner. Validates hooks, agents, skills, and plugin structure across all PopKit plugin packages.
Run comprehensive tests on plugin components using the modular test runner. Validates hooks, agents, skills, and plugin structure across all PopKit plugin packages.
/plugin marketplace add jrc1883/popkit-claude/plugin install popkit-core@popkit-claudeThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Execute PopKit's modular test suite to validate plugin integrity across all distributed plugin packages.
/popkit:plugin test| Flag | Description |
|---|---|
| (category) | Test category: agents, hooks, skills, structure (default: all plugins) |
--verbose | Show detailed test output including passing tests |
--fail-fast | Stop on first test failure |
Determine which test runner to execute based on arguments:
run_all_tests.py (tests all 5 plugin packages)run_tests.py <category> (tests popkit-core only)--verbose flag to command--fail-fast flag to commandUse the Bash tool to run the appropriate Python test runner:
Test all plugins (default):
cd packages/popkit-core && python run_all_tests.py
Test all plugins with verbose:
cd packages/popkit-core && python run_all_tests.py --verbose
Test specific category (single plugin):
cd packages/popkit-core && python run_tests.py agents
cd packages/popkit-core && python run_tests.py hooks
cd packages/popkit-core && python run_tests.py skills
cd packages/popkit-core && python run_tests.py structure
The test runner outputs structured results to stdout. Parse the output and provide a summary:
Key metrics to report:
Example summary format:
PopKit Plugin Tests Complete
============================
Plugins Tested: 5
- popkit-core: PASS (19/31 tests passed)
- popkit-dev: SKIP (no tests)
- popkit-ops: SKIP (no tests)
- popkit-research: SKIP (no tests)
- popkit-suite: SKIP (no tests)
Overall Results:
- Test Cases: 31
- Passed: 19 (61.3%)
- Failed: 12 (38.7%)
- Duration: 6.23s
Status: Tests completed with failures
If there are failures, show the first few with details:
Failures:
- popkit-core - Bash command completion tracking
Reason: Exit code mismatch
- popkit-core - Write tool triggers quality gate
Reason: Exit code mismatch
...
run_all_tests.py (modular) or run_tests.py (single plugin)packages/shared-py/popkit_shared/utils/test_runner.pypackages/shared-py/popkit_shared/utils/plugin_validator.pypackages/shared-py/popkit_shared/utils/agent_validator.pypackages/shared-py/popkit_shared/utils/skill_validator.pypackages/shared-py/popkit_shared/utils/hook_validator.py/popkit:plugin test - Run all tests/popkit:plugin test agents - Test agent definitions/popkit:plugin test --verbose - Detailed output