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
710% Growth on my tiny productivity tool hit differently, here is what worked in January User Avatar 64 comments Write COLD DM like this and get clients easily User Avatar 28 comments You roasted my MVP. I listened. Here is v1.3 (Crash-proof & 100% Local) User Avatar 26 comments I built a tool to search all my messages (Slack, LinkedIn, Gmail, etc.) in one place because I was losing my mind. User Avatar 25 comments Why I built a 'dumb' reading app in the era of AI and Social Feeds User Avatar 20 comments Our clients have raised over $ 2.5 M in funding. Here’s what we actually do User Avatar 14 comments