News for hackers. Stuff that matters.
Re:Ask HN: What kind of tests do you write for your side pro... by leros on Sunday January 30, 2022 @09:20PM (#30143744)
This applies to my MVPs too:

Almost none.

I'll write unit tests for functions containing complicated logic that I can't quickly evaluate correctness. This probably amounts to something like 0.01% test coverage.

As a project unfolds, I'll write proper tests for things that I'm terrified of breaking. For example, if I was changing my charging algorithm, I'd probably put proper test coverage around that segment of my codebase.

There are no comments on this comment yet.