- Test-Driven Java Development(Second Edition)
- Alex Garcia Viktor Farcic
- 115字
- 2021-06-24 18:31:52
Repeating
Once all the steps (with refactor being optional) are finished, we repeat them. At first glance, the whole process might seem too long or too complicated, but it is not. Experienced TDD practitioners write one to ten lines of code before switching to the next step. The whole cycle should last anything between a couple of seconds and no more than a few minutes. If it takes more than that, the scope of a test is too big and should be split into smaller chunks. Be fast, fail fast, correct, and repeat.
With this knowledge in mind, let us go through the requirements of the application we're about to develop using the Red-Green-Refactor process.
推薦閱讀
- Django+Vue.js商城項目實戰
- Delphi程序設計基礎:教程、實驗、習題
- C語言程序設計(第2版)
- 精通軟件性能測試與LoadRunner實戰(第2版)
- Mastering Python High Performance
- Java加密與解密的藝術
- Amazon S3 Cookbook
- Python機器學習編程與實戰
- HTML5入門經典
- concrete5 Cookbook
- Advanced Oracle PL/SQL Developer's Guide(Second Edition)
- Vue.js 2 Web Development Projects
- Getting Started with Python and Raspberry Pi
- Android傳感器開發與智能設備案例實戰
- Spring+Spring MVC+MyBatis從零開始學