首页 > 其他 > 详细

软件工程 - Test-Driven Development (TDD),测试驱动开发

时间:2018-06-21 23:03:24      阅读:202      评论:0      收藏:0      [点我收藏+]

参考

  1. https://baike.baidu.com/item/%E6%B5%8B%E8%AF%95%E9%A9%B1%E5%8A%A8%E5%BC%80%E5%8F%91/3328831?fr=aladdin
  2. https://en.wikipedia.org/wiki/Test-driven_development
  3. https://github.com/mjhea0/flaskr-tdd

总结

先写测试,然后写程序pass掉测试,that is 测试驱动开发。

技术分享图片
TDD usually follows the "Red-Green-Refactor" cycle, as shown in the image above:

  1. Write a test
  2. Run the test (it should fail)
  3. Write just enough code for the test to pass
  4. Refactor code and retest, again and again (if necessary)

软件工程 - Test-Driven Development (TDD),测试驱动开发

原文:https://www.cnblogs.com/allen2333/p/9211314.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!