Automated tests
Who this is for
Section titled “Who this is for”Engineers and QA.
When to use it
Section titled “When to use it”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.
What good looks like
Section titled “What good looks like”A regression would fail CI before a user sees it. The test name reads like the behavior.
What to do
Section titled “What to do”- Write or update the test with the change, not after merge.
- Run the relevant suite locally.
- If CI fails, fix it on the same PR.
- Note on the ticket what is covered by automation vs what a human must still check.