Testing Commands
Explore 7 curated testing commands for building with AI coding agents — what each one does, when to use it, and how to add it to your workflow.
Seven slash commands for writing, fixing and running tests. /write-tests generates tests for a file or function, covering the happy path and edge cases, and /generate-e2e-test scaffolds an end-to-end test for a user flow based on the real UI. When a test fails, /fix-failing-test diagnoses it by finding the real root cause, and /flaky-test-hunt reproduces an intermittent failure and fixes the source of nondeterminism.
Three cover AI and agent testing. /run-evals runs your LLM evaluation suite (DeepEval, promptfoo or RAGAS) and reports scores against thresholds before a merge. /test-mcp-server runs MCP Inspector CLI checks against an MCP server and reports pass or fail for each check. /check-support-cases validates a JSONL testset for a support bot, including IDs, fields, expected answer, clarify or escalate outcomes and sources, without running the bot.
7 commands
Check Support Cases
Validate a local JSONL support-answer testset with Python: unique case IDs, exact fields, answer/clarify/escalate expectations, required answer-card references and sources, and explicit escalation reasons; report counts without running a support bot.
Fix Failing Test
Diagnose and fix a failing test by finding the real root cause.
Hunt Flaky Tests
Reproduce a flaky test, find the real source of nondeterminism, and fix the cause.
Generate E2E Test
Scaffold a resilient end-to-end test for a user flow grounded in the real UI.
Run Evals
Run the project's LLM evaluation suite (DeepEval, promptfoo, or RAGAS) and report scores against thresholds before a merge.
Test MCP Server
Run MCP Inspector CLI checks against an MCP server given as a launch command or URL: detect its protocol era, list tools with --strict, call one safe tool, call it with bad arguments, and report pass or fail per check with exit codes.
Write Tests
Generate tests covering the happy path and edge cases for the given target.