2 ms·
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 exampl
by aaaarc 4y ago
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.