摘要:
昨天和一个同事一起pair的tdd的时候,有一个测试一直红着,我只好开了debugger来调试。这时候对面的8x,笑嘻嘻的说: ”tdd开debugger就是tdd的耻辱!“真的如此吗?我们首先回顾一下tdd是的节奏red/green/refactor:Red - Write a little test that does'n work, and perhaps doesn't even compile at first.Green - Make the test work quickly, committing whatever sins neccessary in the
阅读全文