vibe-coding-ai-rules testing.instructions.md

A set of software-testing rules covering test structure, coverage targets, test types, and mocking. TDD means writing tests as part of development; these instructions instead define standards for unit, integration, and end-to-end tests.

In plain words
What is it for?
Use it when adding or reviewing tests. It guides Arrange-Act-Assert structure, test naming, coverage, dependency mocking, fixtures, and checks of important user journeys.
Why use it?
It makes tests easier to understand and reduces fragile tests that depend on one another or on implementation details. It also sets higher coverage expectations for critical and security-related code.

Instructions file for GitHub Copilot

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.

agentmods
npx agentmods add instructions/obviousworks/vibe-coding-ai-rules/testing
Clone the repo
git clone --depth 1 https://github.com/obviousworks/vibe-coding-ai-rules

Made for: GitHub Copilot.

Per session 206 This file is loaded in full into every session.
When invoked 206 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00206 $0.00206
Opus 5 $0.00103 $0.00103
Sonnet 5 $0.00041 $0.00041
Haiku 4.5 $0.00021 $0.00021

Measured yesterday against content hash fc43be7e4195, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

vibe-coding-ai-rules testing.instructions.md 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 yesterday.

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.

ide-specific/github-copilot/.github/instructions/testing.instructions.md · 32 lines

What it actually says

Testing Standards

Test Structure

  • Use Arrange-Act-Assert (AAA) pattern
  • One assertion concept per test
  • Descriptive test names: "should [expected behavior] when [condition]"

Coverage Requirements

  • Critical paths: minimum 80% coverage
  • Security-related code: minimum 90% coverage
  • Utility functions: minimum 95% coverage

Test Types

  • Unit tests: isolated, fast, no external dependencies
  • Integration tests: test component interactions
  • E2E tests: critical user journeys only

Mocking

  • Mock external dependencies, not internal logic
  • Use dependency injection for testability
  • Reset mocks between tests

Anti-Patterns to Avoid

  • No test interdependencies
  • No hardcoded test data (use factories/fixtures)
  • No testing implementation details (test behavior)
  • No sleeping/waiting (use proper async patterns)
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. yesterday First seen · 32 lines · 206 tokens per session scan A fc43be7e4195

Subscribe to this mod's changes

vibe-coding-ai-rules testing.instructions.md is an instructions file published in the GitHub repository obviousworks/vibe-coding-ai-rules (88 stars, last pushed 2mo ago), licensed MIT. It adds 206 tokens to every session, about $0.0010 per session on Opus 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-08-30.

Related

Other instructions, from other repositories