Writing Tests

Instructions and hints for writing tests.

chattocorp Updated 3k repo stars
It's Chatto!

File contents

Testing Judgment

  • Pick the lowest test layer that exercises the change, but do not stop below the layer where the bug could occur.
  • When testing an early rejection, use input that would fail a later check. The test should still return the early error.
  • Choose additional integration or end-to-end coverage when the regression can occur only across component or process boundaries.

chattocorp/chatto commit 1fa7b77816

Frequently asked questions

npx get-skill add chattocorp/writing-tests