测试驱动开发的主要步骤是什么

2023-06-30   


1. Write a single test
   2. Compile it. It shouldn’t compile because you’ve not written the implementation code
   3. Implement just enough code to get the test to compile
   4. Run the test and see it fail
   5. Implement just enough code to get the test to pass
   6. Run the test and see it pass
   7. Refactor for clarity and “once and only once”
   8. Repeat


相关内容:

  1. 什么是测试驱动开发(TDD)
  2. Linux开机引导的步骤是什么
  3. Linux开机引导的步骤是什么
  4. Linux开机引导的步骤是什么
  5. 性能测试工程师的面试题
  6. 一套比较完整的软件测试人员面试题