▲ | yakshaving_jgt 5 days ago | |
Feel free to try coming up with a single integrated test that tests all 16 paths through this parsing function. https://news.ycombinator.com/item?id=45081378 > By the way, here's what Kent Beck has to say about unit tests As I pointed out to you earlier, I've been doing TDD for a long time. I'm already plenty familiar with Kent Beck's writing. --- I'm not convinced that you actually know what you're talking about. You've contradicted yourself a number of times when responding to me and to others. You construct straw men to argue against (who said everything needs to mocked in unit tests?). You've said "very few people write parsers", which is utter nonsense — parsing, whether you realise it or not, is one of the most common things you'll do as a working programmer. You've insisted that unit tests don't actually test that something works. You've created this false dichotomy where one has to choose between either isolated tests or integrated tests. All I can say is good luck to you mate. |