软件工程 - Test-Driven Development (TDD),测试驱动开发
Posted allen2333
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了软件工程 - Test-Driven Development (TDD),测试驱动开发相关的知识,希望对你有一定的参考价值。
参考
- 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
- https://en.wikipedia.org/wiki/Test-driven_development
- https://github.com/mjhea0/flaskr-tdd
总结
先写测试,然后写程序pass掉测试,that is 测试驱动开发。
TDD usually follows the "Red-Green-Refactor" cycle, as shown in the image above:
- Write a test
- Run the test (it should fail)
- Write just enough code for the test to pass
- Refactor code and retest, again and again (if necessary)
以上是关于软件工程 - Test-Driven Development (TDD),测试驱动开发的主要内容,如果未能解决你的问题,请参考以下文章
<Test-Driven Development with Python;学习笔记 第一部分 测试驱动开发基础
<Test-Driven Development with Python;学习笔记 第一部分 测试驱动开发基础
text 保存自https://wpshout.com/learning-php-for-wordpress-development-introduction-to-php-functions/
text 保存自https://wpshout.com/learning-php-for-wordpress-development-introduction-to-php-functions/
text 保存自https://wpshout.com/learning-php-for-wordpress-development-introduction-to-php-functions/
text 保存自https://wpshout.com/learning-php-for-wordpress-development-introduction-to-php-functions/