testing

testing is a command for GitHub Copilot from yuri-semenenko/ai-engineering-workspace. It costs 18 tokens per session (776 once invoked), scanned A, original, MIT.

A testing guide for deciding what software tests to write and how to write them. It explains TDD, or test-driven development, where you write a failing test before the code that makes it pass.

In plain words
What is it for?
Use it to plan tests, review an existing test suite, add regression tests for bugs, and develop new behavior through a failing-test-first loop.
Why use it?
It helps avoid tests that only increase coverage numbers, miss error cases, depend on timing or networks, or test private implementation details.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt.

Good fit Use it to plan tests, review an existing test suite, add regression tests for bugs, and develop new behavior through a failing-test-first loop.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/yuri-semenenko/ai-engineering-workspace/testing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/yuri-semenenko/ai-engineering-workspace

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for testing

README.md
[![agentmods](https://agentmods.dev/badge/commands/yuri-semenenko/ai-engineering-workspace/testing/github.svg)](https://agentmods.dev/commands/yuri-semenenko/ai-engineering-workspace/testing)
Your own site
<a href="https://agentmods.dev/commands/yuri-semenenko/ai-engineering-workspace/testing"><img src="https://agentmods.dev/badge/commands/yuri-semenenko/ai-engineering-workspace/testing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for testing

Your own site · 80×15
<a href="https://agentmods.dev/commands/yuri-semenenko/ai-engineering-workspace/testing"><img src="https://agentmods.dev/badge/commands/yuri-semenenko/ai-engineering-workspace/testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 776 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.00776
Opus 5.5 $0.00007 $0.00310
Sonnet 5.5 $0.00004 $0.00155
Haiku 4.5 $0.00002 $0.00078

Measured 5d ago against content hash 0cd232074bb2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

copilot/workspace-template/.github/prompts/testing.prompt.md · 41 lines

What it actually says

Testing Prompt

Role: Act as a senior engineer writing or reviewing tests. Tests are the executable spec; optimize them for reading, not for coverage numbers.

Context: A change needs tests, or an existing suite needs review. The goal is meaningful assertions on behavior, not inflated coverage.

Task: Decide what to test, write or review the tests, and drive new code test-first where a seam allows.

Constraints:

  • Prioritize branch logic, boundaries, contracts, and error paths. Skip trivial pass-throughs, framework internals, and implementation details.
  • Test through the public surface, not private helpers or internal state.
  • DAMP over DRY: some duplication beats indirection the reader must unfold. The failing output alone should say what broke.
  • Keep the pyramid: mostly fast unit tests, integration at real seams, few end-to-end. Flag inverted (E2E-heavy) suites.
  • Deterministic tests only: no real time, no real network, no order dependence, no logic inside a test.
  • For new behavior, follow the TDD loop: agree the seam, write a failing test (red), write the least code to pass (green), then refactor as a separate step.
  • For a bug fix, write the failing regression test first (red for the reported reason), then fix (green), then run the surrounding suite. If the fix already exists, take it out to see the test fail, in an isolated copy and never in the working tree: a scratch copy of the tree, or git worktree add --detach <dir> so no branch is created, with the uncommitted and untracked files the test needs copied in. Remove only the fix under test, keep every other change, and make no revert commit and no stash. Compare git status before and after to confirm the working tree is unchanged. If the copy errors or times out, or no isolated copy can run the test, read the test against the fix and say the failure was not observed. A worktree made for this is removed only under the usual cleanup question.
  • Judge the tests of one unit as a set: if together they would still pass when the code under test did nothing or returned a constant, they do not pin it down; one example can survive a constant on its own and still be a good test. On critical logic, a targeted mutation run, by a tool if the repo has one or by breaking a line by hand in an isolated copy (the same rules as taking a fix out for a bug fix), shows which realistic bugs the tests miss; a survivor is a missing assertion, an equivalent mutant, or a tool limit, and only the first earns a test. A mutation score is not a target.
  • Slice vertically (a thin path through every layer) rather than horizontally.
  • If a test is impossible (non-deterministic or environment-bound), say so plainly rather than implying coverage.
  • Delegate mechanical scaffolding (boilerplate, fixtures, codemods) to a focused pass; keep the seam choice and whether the behavior is actually covered as the main judgment. A green suite is evidence, not proof.

Output Format:

  1. What to test, in priority order (and what to skip, with reason)
  2. The tests, or the review findings
  3. For new code: the red-green-refactor steps taken
  4. For a bug: the failing regression test and the fix
  5. Any coverage gap left, stated explicitly

Success Criteria:

  • Each test asserts one behavior and its name states it.
  • Tests fail for the right reason before they pass.
  • The suite reads as a spec, not as a mirror of the implementation.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +1 lines 0cd232074bb2
  2. 6d ago First seen · 40 lines · 18 tokens per session scan A 76b0ca3abb01

Subscribe to this mod's changes

testing is a command published in the GitHub repository yuri-semenenko/ai-engineering-workspace (4 stars, last pushed 3d ago), licensed MIT. It adds 18 tokens to every session and 776 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-31.

Related

testing compared with commands from other repositories

testing next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
testingyuri-semenenko/ai-engineering-workspaceCommand43d agoMITA18GitHub Copilot
buildloiane/specs-driven-development-spring-angularCommand62yesterdayMITA17Claude Code
validateloiane/specs-driven-development-spring-angularCommand62yesterdayMITA18Claude Code
testloiane/specs-driven-development-spring-angularCommand62yesterdayMITA17Claude Code
vibeflow-hotfixpe-menezes/vibeflowCommand33yesterdayMITA30Claude Code
9_gofer_testseai-support/eai-goferCommand15d agoApache-2.0A18Claude Code
buildGuillemRoca/agent-skills-androidCommand51mo agoMITA0Claude Code