What's the most valuable test in your suite — the one that actually caught a real production bug?
I've been thinking about test ROI lately. We all have suites with dozens or hundreds of tests, but if I'm honest, most of them just confirm that things still work the way they always did.
But every now and then there's that one test — the one that actually caught a real bug before it hit production. The one that justified the entire automation effort.
What's yours? What did it catch, and why do you think your other tests missed it?
I'll start: mine was a cross-layer integration test that verified data consistency between the API and the database. Every UI test passed, the API returned 201, but the DB had silently rejected the insert because of a CHECK constraint. Without that specific test, it would have looked like a perfectly green pipeline.
Curious what patterns come up — I'm guessing most "hero tests" are integration or E2E, not unit tests.