- Test-Driven Java Development(Second Edition)
- Alex Garcia Viktor Farcic
- 133字
- 2021-06-24 18:31:51
Writing a test
Every new feature starts with a test. The main objective of this test is to focus on requirements and code design before writing the code. A test is a form of an executable documentation and can be used later on to get an understanding of what the code does or what are the intentions behind it.
At this point, we are in the red state since the execution of tests fails. There is a discrepancy between what tests expect from the code and what the implementation code actually does. To be more specific, there is no code that fulfills the expectation of the last test; we haven't written it yet. It is possible that at this stage all the tests are actually passing, but that's the sign of a problem.
推薦閱讀
- C語言程序設(shè)計實踐教程(第2版)
- MySQL數(shù)據(jù)庫管理實戰(zhàn)
- Unity Game Development Scripting
- Android系統(tǒng)級深入開發(fā)
- 響應(yīng)式架構(gòu):消息模式Actor實現(xiàn)與Scala、Akka應(yīng)用集成
- Spring Boot+MVC實戰(zhàn)指南
- Node學(xué)習(xí)指南(第2版)
- 軟件體系結(jié)構(gòu)
- Penetration Testing with the Bash shell
- Google Adsense優(yōu)化實戰(zhàn)
- Visual FoxPro程序設(shè)計實驗教程
- Visual FoxPro數(shù)據(jù)庫程序設(shè)計
- 熱處理常見缺陷分析與解決方案
- BackTrack 5 Cookbook
- 軟件測試