Strategic Testing

Decide whether a change warrants new tests and choose proportionate verification. Use before adding tests, when planning validation, or when reviewing whether a proposed test protects meaningful behavior.

franciscomoretti 23c0eb5 891 B Updated

File contents

Strategic testing

Add tests only when they protect meaningful behavior or a stable contract that existing checks could realistically miss.

  • Prioritize domain invariants, important edge cases, public interfaces, persisted data, security boundaries, and integration seams.
  • Skip tests for mechanical edits, implementation details, existing coverage, or changes already verified by types, linting, or schema validation.
  • Choose the smallest test level that protects the behavior.

Before adding a test, identify the realistic failure it prevents and confirm that the maintenance cost is justified. If that case is weak, do not add one.

franciscomoretti/chat-js/tree/main/.agents/skills/strategic-testing commit 23c0eb5253

Frequently asked questions

npx skillmds@latest add franciscomoretti/strategic-testing