- 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.
推薦閱讀
- Python編程自學(xué)手冊
- Learning AWS Lumberyard Game Development
- Access 2010數(shù)據(jù)庫基礎(chǔ)與應(yīng)用項(xiàng)目式教程(第3版)
- Linux環(huán)境編程:從應(yīng)用到內(nèi)核
- 零基礎(chǔ)學(xué)MQL:基于EA的自動(dòng)化交易編程
- 機(jī)械工程師Python編程:入門、實(shí)戰(zhàn)與進(jìn)階
- Kinect for Windows SDK Programming Guide
- 51單片機(jī)C語言開發(fā)教程
- C語言程序設(shè)計(jì)
- 執(zhí)劍而舞:用代碼創(chuàng)作藝術(shù)
- C/C++數(shù)據(jù)結(jié)構(gòu)與算法速學(xué)速用大辭典
- Extending Unity with Editor Scripting
- IBM Cognos TM1 Developer's Certification guide
- Mastering Android Studio 3
- Python預(yù)測分析實(shí)戰(zhàn)