14 ms·
Those items are all testable through the createPizza method. There should be lots of tests! You've made up the one golden test scenario as a strawman. Every sce
by yCombLinks 3y ago
Those items are all testable through the createPizza method. There should be lots of tests! You've made up the one golden test scenario as a strawman. Every scenario you listed changes the expected output(the pizza). If you are testing internal methods, your tests are going to tell you you have broken, even if the pizzas created are 100% correct. So people won't clean the code, because the tests break, and they don't know if they are actually broken.
- raggi 3y agoevery single comment extrapolating a trival example is a strawman