ldaume/agentic-engineering-harness/testing-strategies

Claude Code and agent skill by ldaume/agentic-engineering-harness

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Plans pragmatic test coverage across unit, integration, contract, e2e, visual, accessibility, performance, and smoke tests based on risk and behavior. Use when deciding what to test, designing a test pyramid, adding coverage for a feature, reducing flaky tests, or reviewing QA strategy.

Install

npx vskill@latest install ldaume/agentic-engineering-harness/testing-strategies

SKILL.md

The same SKILL.md was published earlier as ldaume/agentic-engineering-harness/testing-strategies.

Testing Strategies

Use this when the question is not just "write a test" but "what kind of signal should prove this works?"

Testing starts while framing behavior and risk, not after implementation. Use examples, experiments, threat or failure models, executable checks, and production signals as one continuous learning system.

Project Fit Check

Before planning tests:

  1. Read existing test commands, frameworks, CI gates, fixtures, test helpers,

and coverage conventions.

  1. Identify the changed behavior, risk, blast radius, and public interface.
  2. Prefer the cheapest test that catches the likely regression.
  3. Match the repo's existing layers unless the task is to improve them.
  4. Do not chase coverage percentage when behavior risk is elsewhere.

Risk To Test Mapping

RiskBest signal
pure logicunit test
schema or API contractcontract/schema test
database/repository behaviorintegration test
queue/workflow behaviorworker or workflow fixture test
user journeye2e test, elements located by data-testid
new or changed route, handler, or streamat least one test through the real route; a mock that replaces the route proves only its client
layout/a11y regressionbrowser/accessibility test (axe scan plus explicit role/name assertions, never role or label locators) over every state a person can reach (dialog, toast, error, empty, loading), not only the first render
deployment boot paththe pull request builds the deployable artifact and boots it (build smoke); a Dockerfile, base image, runtime or toolchain version, lockfile, or dependency major change is a boot-path change
auth, permissions, or abusenegative + integration test
migration or data integrityrehearsal + invariant test
resilience and operabilityfailure, load, recovery, or smoke test
AI behaviorrepresentative eval + guardrail signal

Choose levels from this mapping as a judgment. In practice the common miss is a state nobody tested or a route a mock replaced, far more often than a wrong level, so check those two before adding another level.

Rules

  • Test through public interfaces.
  • Give behavioral tests explicit Given/When/Then semantics: Given states the

relevant preconditions, When applies one meaningful stimulus, and Then asserts observable behavior. Express this through test names, structure, or local helpers; mandatory comments and framework-specific GWT libraries add no value.

  • Apply the same semantics to contract, property, migration, load, recovery,

and end-to-end tests: controlled context, action or disturbance, observable result or invariant.

  • Keep test data explicit and local to the test where possible.
  • Mock internals only when the boundary is genuinely external or expensive.
  • Synchronize on the work, not on a duration. Where the interface returns

before the work it started is finished - a response that begins streaming while the producer keeps writing, a task that outlives the call - wait for that work to complete before asserting. A sleep that passes at 95 ms and fails at 100 ms is not a flaky test; it is a deterministic race the machine's speed decides, and calling it flakiness sends the fix to the wrong place.

  • Set a framework's per-test timeout once, in the config every suite reads,

and size it for the slowest CI host that runs it. On a busy shared runner with a cold module cache, a test file's first import can outlast the default, so a test the change never touched times out. Raising the limit in that one test leaves the next file to fail the next merge.

  • A negative assertion needs an instrument that would notice the positive.

"Nothing was fetched" proves nothing when the fake signals the breach by throwing and the code under test catches a failure as an ordinary outcome. Count the reaches on the fake and assert zero.

  • Run an offline evaluation of an advice, retrieval, or agent system against

historical outcomes as of each item's date: only records, comments, and states that existed before the cutoff, or future knowledge inflates the score. Exclude or flag undated sources. Filter interim or holding replies out of the reference set.

  • Trust a model judge's number only after an explicit rubric (including when

"unanswerable" is allowed), a check against a second judge, and agreement with human labels.

  • Add regression tests before bug fixes when feasible.
  • Define the cheapest decisive signal before or with the behavior it guides;

do not create a downstream QA handoff.

  • Pair pre-release checks with the telemetry and observation window needed to

detect production-only failure and outcome drift.

  • Autonomous gates return bounded, secret-safe, actionable failure context:

identify the failed boundary, concise safe reason, correlated evidence, and retry or rollback decision without exposing secrets, untrusted payloads, or unbounded logs.

  • A prototype may prove a learning hypothesis with experiment evidence. It

needs production tests and controls before any code is promoted or rebuilt for release.

  • Delete or rewrite tests that only assert implementation trivia.
  • Track flaky tests as product risk, not background noise.

Gate Order

Order gates cheapest first: format, lint, typecheck, focused unit, affected integration, build, then e2e or deploy smoke. Stop at the first red, because a later gate on a broken earlier one only costs time and hides the cause.

Review Checklist

references/vocabulary.md lists the field's terms for authors and check scripts; a review does not load it.

  • Does the test fail for the bug or risk it claims to cover?
  • Does it still pass if internals are refactored safely?
  • Is setup smaller than the behavior under test?
  • Is the assertion user-, contract-, or system-visible?
  • Can CI run it reliably?

Red Flags

  • coverage added only by testing private helpers
  • brittle snapshots for dynamic UI
  • mocks that make the real integration untested
  • e2e test used where a unit test would be clearer
  • browser tests locating by role, label, text, or CSS instead of data-testid, so copy, translation, or theme changes break them
  • no test for auth, migration, or data ownership changes

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
3
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ldaume/agentic-engineering-harness/testing-strategies/badge)](https://verified-skill.com/skills/ldaume/agentic-engineering-harness/testing-strategies)

Something wrong with this skill or its page? Tell us.