News for hackers. Stuff that matters.
Re:Unit Testing is Overrated (2020) by aaaarc on Thursday April 07, 2022 @07:09AM (#30942977)
Tests are an extension of documentation, in my opinion. I go on Github and I read the readme then I go to the test folder and try to see some valid usage examples.

This is what writing useful tests mean, from a client perspective I just want to understand what's valid and what's invalid.

Also useful to make sure we fixed specific scenario bugs.

I've seen a lot of people doing things wrong but we can summarise in two cases: - "We've got 100% coverage, it must mean we've got no bugs, right?" - We've got tests covering happy path, everything else is tested manually. It takes forever and it's not shared anywhere, but "trust me" I've tested this.

There are no comments on this comment yet.