Re:Is TDD Dead? (2014)
by RandoHolmes on Thursday August 27, 2020 @06:38AM
(#24292205)
- "you can, for example, examine HTML in your tests"
- "that sounds super fragile, there's only a few circumstances in which I would that"
- "Here's the circumstances in which I'm doing that"
- "Here are the problems with what you're doing, and here are alternatives that don't involve examining the HTML"
- "I'm not examining the HTML!?!? Whatever gave you that impression!"
---
Not worth my time.
Implies that you're looking for the contents that are supposed to be returned.
When there's an error, the contents you're looking for won't be there, therefore the test will fail.
Furthermore, HTTP testing libraries typically require you to specify required HTTP status codes.