Arth
Decision 16 of 18

Test on real data, because the fixtures were lying

One decision from Arth, which asks: Can an app understand your money without ever being told what it is?


By Phase 12 every test passed, and the tests had been written from what I assumed bank messages looked like. Phase 13 ran the parsers on one real inbox and two real statements. For several banks the SMS parser read nothing at all, for others the scan never fetched the messages in the first place, and the PDF import read zero rows. Two of the golden tests I had relied on had a bug baked into their expected answers.

About 45 new templates later, only a few dozen messages in that inbox go unread, and I checked each kind of skipped message against real samples. Real data stays on the machine, and fixtures keep the real layout with made-up names and amounts.

Traded away: the comfort of a green suite. And the coverage is still one person’s inbox: other banks are unchecked, investment statements are still synthetic, and card spends in a foreign currency are skipped because the rupee amount only appears on the statement.

Your opinion

Would you have decided this differently?

Where do you stand?

What gets published. I read every opinion and publish substantive ones, including those that disagree with me, as a scroll on this page. I may add a reply. I leave out spam, abuse and anything off-topic, so please include only what you’d be happy to see in public.

Where it goes. I keep your opinion, your stance and, if you allow it, your name in a database run by Neon. I don’t ask for your email or store your IP address, but Netlify, which hosts this site, may log it when it handles your request. To have yours removed, email pkrishna@vaulthai.health. A published opinion is removed from the site, though it can remain in my site’s version history.

Next