Skip to content
Get the AI shot you actually asked for on FramesField — Shot Lab, workflows & real API rates.
agentscamp

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.

/check-support-cases<cases.jsonl>

Fix Failing Test

Diagnose and fix a failing test by finding the real root cause.

/fix-failing-test[test name or path]

Hunt Flaky Tests

Reproduce a flaky test, find the real source of nondeterminism, and fix the cause.

/flaky-test-hunt<suspected test or area (optional)>

Generate E2E Test

Scaffold a resilient end-to-end test for a user flow grounded in the real UI.

/generate-e2e-test<user flow to test>

Run Evals

Run the project's LLM evaluation suite (DeepEval, promptfoo, or RAGAS) and report scores against thresholds before a merge.

/run-evals<eval suite path / config, or the feature to evaluate>

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.

/test-mcp-server<server command or URL> [tool name]

Write Tests

Generate tests covering the happy path and edge cases for the given target.

/write-tests[file or function]