加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

TDD三定律

发布时间:2020-12-13 20:18:01 所属栏目:百科 来源:网络整理
导读: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 produ

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.——老测试一旦通过,返回写新测试

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读