Running Them Automatically
Tests that run only when somebody remembers do not protect anything. Run them on every push, and on every pull request before it can merge.
A basic pipeline: install, lint, type-check if you have types, run the tests, and report. Fifteen lines of configuration, and it turns the suite from something you maintain into something that maintains you.
Keep it fast enough to be run. Under about five minutes and people wait for it; much beyond that and they start merging without looking.
Run the fast tests first so failures surface early. Run the slow end to end suite separately if it is genuinely slow. And be honest about the trade: a thorough suite that nobody waits for protects less than a quick one everybody watches.
Mark this lesson complete
Signed in, your progress follows you to every device.