My friend told me at his small company where they only got 1 full time dev and 1 freelance dev. they got a codebase with 200k LOC but only 2-3 unit tests. They said our end users are our tests, when they find bugs, they report to us.
Do you think my friend has a point here?
My friend works at a small company with only 1 full-time developer and 1 freelance developer. They have a codebase with around 200k LOC but only 2–3 unit tests lol
Their philosophy is basically, “Our end users are our tests.” When employees find bugs, they report them, and the developers fix them.
My friend also argues that many devs write unit tests just to make them pass or achieve test coverage, often focusing on happy paths while ignoring edge cases that could cause real problems.
In his context, the company only builds internal tools/ apps for employees.
He believes that having no unit tests can actually be a reasonable decision for a small company because the time saved by not writing tests can instead be spent shipping features that makes money, and work life eaiser for employees
IMO, I wouldn't say he's wrong based on his context.
But I'd love to hear from you with real experience.
Does my friend actually have a valid point, or is having almost no tests just technical debt waiting to bite them in the ass even though they follow "Our end users are our tests" lol
Ps. the FT dev has worked in a start up only and got like 1-2 yoe