结对编程Pair Programming)是一种敏捷软件开发实践,指两个程序员并排坐在一台电脑前,面对同一个显示器,使用同一个键盘和鼠标一起工作.

 

the test-driven development

the three rules of TDD:

1. You are not allowed to write any production code unless it is to make a failing unit test pass.

在写完“红色”(无法通过测试)的单元测试代码之前,不允许写任何的产品代码。

2. You are not allowed to write any more of a unit test than is sufficient to fail; and compilation failures are failures.

除了恰好让单元测试失败的代码(编译错误也是错误的一种),不要写更多的单元测试。

3. You are not allowed to write any more production code than is sufficient to pass the one failing unit test.

所写产品代码应该刚刚能够满足单元测试。

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2022-01-23
  • 2022-12-23
  • 2021-09-23
  • 2021-12-08
  • 2021-10-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-01
  • 2021-06-01
  • 2021-10-23
  • 2021-07-18
  • 2022-12-23
相关资源
相似解决方案