Design testing strategy or write tests
Designs test strategies or implements unit, integration, and E2E tests with coverage analysis.
/plugin marketplace add srstomp/pokayokay/plugin install srstomp-pokayokay@srstomp/pokayokay<testing-task> [--audit]Design or implement tests for: $ARGUMENTS
Parse $ARGUMENTS to determine mode:
--audit flag present → Coverage audit mode (creates tasks for gaps)When running tests (not designing strategy), delegate test execution to the yokay-test-runner agent for isolated output. This keeps verbose test output separate from the main conversation.
Use the yokay-test-runner agent to run the test suite.
Return only failures and summary to this conversation.
The agent will:
Use delegation for:
Run inline for:
Detect from project:
From $ARGUMENTS, determine the goal:
For Strategy:
For Implementation:
For Debugging:
npx @stevestomp/ohno-cli create "Test: [specific tests]" -t chore
--audit flag)When --audit is specified, switch to coverage gap analysis mode:
# Example commands
npm run test -- --coverage
npx vitest --coverage
pytest --cov
| Risk Level | Description | Priority |
|---|---|---|
| Critical | Auth, payments, data integrity | P1 |
| High | Core business logic, API endpoints | P2 |
| Medium | UI components, utilities | P3 |
| Low | Config, constants, types | Skip |
Automatically create ohno tasks using MCP tools for identified gaps:
create_task({
title: "Test: [what needs testing]",
description: "[Gap description]\n\nFiles: [file paths]\nCurrent coverage: [X]%\nTarget: [Y]%\nSuggested tests: [list]",
task_type: "test",
estimate_hours: [1-4 based on scope]
})
Example task creation:
create_task("Test: Add unit tests for auth middleware", type: test) P1create_task("Test: Add integration tests for /api/users endpoints", type: test) P2create_task("Test: Add E2E test for checkout flow", type: test) P1Coverage Audit Results:
- Current coverage: [X]%
- Target coverage: [Y]%
- Gap: [Z]%
Created [N] test tasks:
- [task-id]: Test: [name] (P1/P2/P3)
- ...
Recommended priority: [first task to tackle]
/pokayokay:work - Implement tests/pokayokay:cicd - Add tests to pipeline/pokayokay:api - API testing patternsWhen testing involves:
api-design skillaccessibility-auditor skillsecurity-audit skill