- 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.
推薦閱讀
- ThinkPHP 5實戰
- Web交互界面設計與制作(微課版)
- Mastering C# Concurrency
- C語言從入門到精通(第4版)
- INSTANT Passbook App Development for iOS How-to
- Learning Hunk
- 零基礎學Python網絡爬蟲案例實戰全流程詳解(入門與提高篇)
- Python全棧數據工程師養成攻略(視頻講解版)
- Learning Unreal Engine Android Game Development
- Spring技術內幕:深入解析Spring架構與設計原理(第2版)
- FFmpeg開發實戰:從零基礎到短視頻上線
- 深度實踐KVM:核心技術、管理運維、性能優化與項目實施
- Greenplum構建實時數據倉庫實踐
- 精通Spring:Java Web開發與Spring Boot高級功能
- Android 游戲開發大全(第二版)