- 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.
推薦閱讀
- Facebook Application Development with Graph API Cookbook
- Microsoft Exchange Server PowerShell Cookbook(Third Edition)
- 解構產品經理:互聯網產品策劃入門寶典
- HTML5 移動Web開發(fā)從入門到精通(微課精編版)
- Spring Cloud、Nginx高并發(fā)核心編程
- Flutter跨平臺開發(fā)入門與實戰(zhàn)
- Linux C編程:一站式學習
- Scala Functional Programming Patterns
- Using Yocto Project with BeagleBone Black
- Learning ECMAScript 6
- JavaWeb從入門到精通(視頻實戰(zhàn)版)
- C/C++代碼調試的藝術
- C語言程序設計實驗指導與習題精解
- Spring Boot 2+Thymeleaf企業(yè)應用實戰(zhàn)
- Visual Basic程序設計