- Test-Driven Java Development
- Viktor Farcic Alex Garcia
- 206字
- 2021-07-16 20:31:26
Summary
In this chapter, you got the general understanding of test-driven development practice and insights into what TDD is and what it isn't. You learned that it is a way to design the code through short and repeatable cycle called red-green-refactor. Failure is an expected state that should not only be embraced, but enforced throughout the TDD process. This cycle is so short that we move from one phase to another with great speed.
While code design is the main objective, tests created throughout the TDD process are a valuable asset that should be utilized and severely impact on our view of traditional testing practices. We went through the most common of those practices such as white-box and black-box testing, tried to put them into the TDD perspective, and showed benefits that they can bring to each other.
You discovered that mocks are a very important tool that is often a must when writing tests. Finally, we discussed how tests can and should be utilized as executable documentation and how TDD can make debugging much less necessary.
Now that we are armed with theoretical knowledge, it is time to set up the development environment and get an overview and comparison of different testing frameworks and tools.
- 算法訓練營:入門篇(全彩版)
- Three.js開發指南:基于WebGL和HTML5在網頁上渲染3D圖形和動畫(原書第3版)
- Cassandra Design Patterns(Second Edition)
- Learning OpenStack Networking(Neutron)(Second Edition)
- C/C++程序員面試指南
- Natural Language Processing with Java and LingPipe Cookbook
- Access 2010中文版項目教程
- QPanda量子計算編程
- Oracle Database XE 11gR2 Jump Start Guide
- JavaWeb從入門到精通(視頻實戰版)
- Go Systems Programming
- 例解Python:Python編程快速入門踐行指南
- 零基礎學Java(第5版)
- micro:bit軟件指南
- C語言從入門到精通(第5版)