现在的位置: 首页 > 综合 > 正文

TDD三定律

2014年02月06日 ⁄ 综合 ⁄ 共 242字 ⁄ 字号 评论关闭

1、You must write a failing unit test before you write production code.
——测试先行

2、You must stop writing that unit test as soon as it fails; and not compiling is failing.
——测试一旦失败,开始写生产代码

3、You must stop writing production code as soon as the currently failing test passes.
——老测试一旦通过,返回写新测试

抱歉!评论已关闭.