TDD三定律

前端之家收集整理的这篇文章主要介绍了TDD三定律前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

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

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

原文链接:https://www.f2er.com/javaschema/287182.html

猜你在找的设计模式相关文章