
Automated tests are code that checks your product works, so a release can be verified in minutes instead of days. But automation costs time to build and maintain. Here is a simple way to tell when it pays off.
Start with the maths
Count how long one full manual regression run takes, and how often you run it. If a tester spends two days checking every release and you release twice a month, that's four days a month spent repeating the same checks. A good automated suite can cover most of that in under an hour per run.
Now estimate the cost of building and maintaining the suite. As a rule of thumb, automation pays off when a test will run more than five to ten times before the feature it checks changes significantly.
Automate these first
- Login, sign-up and payments. They break rarely, but when they do, you lose money immediately.
- Your API. API tests are fast, stable and cheap to maintain compared with UI tests.
- Bugs that came back. Every bug that reappears after a fix deserves a test that stops it returning.
- Data-heavy checks. Calculations, reports and imports with many combinations are slow and error-prone by hand.
Keep these manual
- New features that are still changing every sprint.
- Visual design and usability: a person judges "does this feel right" better than a script.
- One-off checks you will never repeat.
Warning signs automation is costing you
- Flaky tests. If tests fail randomly and the team ignores failures, the suite has stopped protecting you. Fix or delete flaky tests quickly.
- Tests nobody runs. Automation only pays off when it runs on every change, in your CI pipeline.
- Too many slow UI tests. Push checks down to API and unit level where you can, and keep UI tests for the key user journeys.
A realistic first step
Pick your five most important user journeys and automate those. Run them on every pull request. Once they are stable and trusted, expand from there. A small suite that the whole team trusts is worth more than a large one everybody ignores.
Rule of thumb: automate what is stable, repeated and expensive to get wrong. Test the rest by hand.
Need help with this?
Our Software Testing & QA team helps companies with exactly this every day. Tell us about your project and get a free, no-obligation estimate.
Talk to an engineer