2 ms·
> they are [...] outdated How can an unit test be outdated? Honest question because, from what I've seen, if whatever it was testing doesn't work anymore (or i
by luord 9y ago
> they are [...] outdated
How can an unit test be outdated? Honest question because, from what I've seen, if whatever it was testing doesn't work anymore (or if something that wasn't supposed to work starts working) then the test fails, fulfilling its purpose.
In other words: I don't see how I would write a test that wasn't self-updating, by alerting that it needs to be changed.
> Relying on unit tests for anything is madness. They are nice to have, but they are just another layer in a defense in depth strategy, not something you can count on. Static checks (including typing) is another layer, just like code reviews, functional tests, etc...
Not sure what you tried to say here. "Relying on unit tests is madness" I can understand (if not agree with), but then you went out to compare it with other practices. Is relying in those practices madness too? If so, what's the point of anything?
> And yeah, you can write very robust code in any language, but Python doesn't help much.
Is there a language that does? I could turn this around and say that you can write truly horrible code in any language, and [insert whatever language you like here] doesn't prevent it much.