Skip to content

Automated tests

Editor
Engineering leadership

Engineers and QA.

When you change behavior or add a feature.

  • Must: Behavior you add or change has an automated test unless the ticket says why not (and a human will test it before ship).
  • Must: Tests that are in CI must pass before merge.
  • Must: Do not skip or delete a failing test to merge. Fix the test or the code.
  • Should: Test the outcome the user or API caller cares about, not only internals.
  • Should: Keep tests deterministic. No sleep-and-hope, no hidden network calls unless the test is explicitly tagged as integration.
  • Team decides: Unit vs integration vs end-to-end mix. QA vs engineer ownership is on Test strategy.

A regression would fail CI before a user sees it. The test name reads like the behavior.

  1. Write or update the test with the change, not after merge.
  2. Run the relevant suite locally.
  3. If CI fails, fix it on the same PR.
  4. Note on the ticket what is covered by automation vs what a human must still check.