Skip to content

test-verify

Efficientworkflow

Write, run, and verify tests: define what to prove → choose strategy → implement → measure coverage → close gaps → prevent regression.

Use when writing unit tests, integration tests, or eval test cases; measuring test coverage; closing coverage gaps; verifying correctness of AI outputs; preventing regressions; or setting up testing infrastructure.

Triggers: “write tests”, “add tests”, “test coverage”, “regression tests”, “eval test cases”, “test this”, “verify this works”

  • qual-code-analysis — identifies under-tested code paths
  • qual-review — reviews existing test quality
  • bench-eval-suite — constructs reusable eval test suites
  • eval-variance — measures test result stability
  • code-review — review test quality and coverage
  • issue-debug — debug failing tests
  • quality-evaluate — benchmark test suite effectiveness
{
"request": "Write unit tests for the JWT authentication middleware, targeting 90% coverage"
}

Output: Test file with unit + edge-case tests, coverage report, gaps identified, and CI integration snippet.

Code TypeRecommended Strategy
Pure functionsUnit tests (Vitest/Jest)
HTTP handlersIntegration tests (supertest)
AI outputsEval suites (bench-eval-suite)
Multi-step workflowsE2E tests with fixtures
Prompt templateseval-variance stability tests