I've spent over a decade in software testing and automation, and one thing I've noticed is how obsessed we are with the number of automated test cases.
We celebrate going from 500 to 1,000 automated tests. But rarely ask whether we actually needed those additional 500 tests.
Now with AI, generating test scripts is becoming ridiculously easy. I think this problem is only going to get worse.
Consider a few things:
- How many of your E2E tests could have been API or component-level tests?
- How many tests haven't caught a single meaningful regression in years?
- How many tests exist simply because someone wanted to increase automation coverage?
- How often do you actually delete unnecessary tests?
I used to be heavily dependent on E2E automation myself. Over time, I realised that knowing where not to automate is just as important as knowing how to automate.
I'd rather maintain 200 meaningful tests than 2,000 tests that give me a false sense of confidence.
Curious to know how other teams approach this.
Do you actively review and remove unnecessary automated tests? Or does your test suite just keep growing with every sprint?