3 ms·
It's not meant to give you confidence in the code. It's meant to give you a quick test to make sure you don't break something while you change the code, if you
by D13Fd 7y ago
It's not meant to give you confidence in the code. It's meant to give you a quick test to make sure you don't break something while you change the code, if you have to make changes to code that lacks any tests at all.
As the author said:
> It’s fine to delete useless tests afterwards. They were useful when you had to change the code. They’re not here to replace proper tests in your codebase!
- ricardobeat 7y ago> It's not meant to give you confidence > It's meant to [...] make sure you don't break something It helps you see if you didn't break 'something', but 1) you have no clue what that something is by reading the test 2) you have no information to fix it. Plus the snapshot itself might have already captured the wrong implementation. It's a false sense of security.