3 ms·
Tests can have bugs too.
by KingOfCoders 6y ago
Tests can have bugs too.
- diggan 6y agoIndeed, that's true! Not only you have to write the tests, you also have to verify it's working, and have monitoring connected to ensure it's continuously working. But still, multi-million companies should surely be able to handle that.
- KingOfCoders 6y agoVerify that it is working after changes, with a test? What is testing that test?
- diggan 6y agoIf you change something, don't you manually check that it's actually doing what you want it to? If I was an engineer changing a test regarding SSL certs expiry time, after a change, I'd test it with a cert that has expired, about to expire and one far in the future. Manually or automated doesn't really matter, but test your changes after you've done them. Really basic stuff.
- KingOfCoders 6y agoMy point was, there is no way to guarantee bugfreeness in any way. You can reduce bugs by automating and another test layer, but each new layer can have bugs too. Even if you prove the code to be correct, you only proved your assumptions of the requirements which might be wrong (both your assumptions and the requirements). Because the comment said something like: There was a bug, so they didn't have a test, why don't they? And I replied: Tests can have bugs too.
- s1k3s 6y agoIt's partially cloudy in NY today.
- KingOfCoders 6y agoIt is it is!