DEV Community

Discussion on: Stop lying to yourself when testing

Collapse
 
jillesvangurp profile image
Jilles van Gurp

A good test is like a scientific experiment. You are not trying to prove your code works but you are trying to falsify assumptions that need to be true for it to not work. Then when it breaks later, it will be because of something you did not think of. It will be an assumption you made that turned out to be wrong that you did not test.