1
0 Comments

The unit testing trap for early founders

We recently started working on Sabil. A core part of the product is accurate device fingerprinting.

In our early releases, we shipped a bug. So we decided we needed automated testing so that any code change can be run against these tests, and we'll know if things break immediately.

That was all good, and it worked perfectly. But as we kept making changes and failing the tests, we added new tests for edge cases. So the tests are enormous now, and I can see them growing even further.

Here's what I learned:

  1. Despite the extra work, writing unit tests for the core part of your business is beneficial.
  2. You can quickly go down a rabbit hole with testing and adding more tests, then improving the quality of the tests, and so on.

My question for the community is, what are some good rules you've developed around unit testing?

on August 31, 2022
Trending on Indie Hackers
AI runs 70% of my distribution. The exact stack. User Avatar 72 comments Show IH: I'm building a lead gen + CRM tool for web designers targeting local businesses without websites — starting with Spain User Avatar 69 comments I'm a solo founder. It took me 9 months and at least 3 stack rewrites to ship my SaaS. User Avatar 58 comments I built a URL indexing SaaS in 40 days — here's the honest story User Avatar 56 comments After 4 landing page rewrites, I finally figured out why my analytics SaaS wasn't converting User Avatar 21 comments We witnessed a sharp spike in our traffic. So much happiness after a long time. User Avatar 15 comments