- Test-Driven Java Development(Second Edition)
- Alex Garcia Viktor Farcic
- 136字
- 2021-06-24 18:31:51
Running all the tests
It is very important that all the tests are run and not only the last test that was written. The code that we just wrote might have made the last test pass while breaking something else. Running all the tests confirms not only that the implementation of the last test is correct, but also that it did not break the integrity of the application as a whole. This slow execution of the whole test suite is a sign of poorly written tests or having too much coupling in the code. Coupling prevents the easy isolation of external dependencies, thus increasing the time required for the execution of tests.
In this phase, we are in the green state. All the tests are passing and the application behaves as we expect it to behave.
推薦閱讀
- Intel Galileo Essentials
- Java面向對象思想與程序設計
- Building Cross-Platform Desktop Applications with Electron
- Python高效開發實戰:Django、Tornado、Flask、Twisted(第3版)
- Mastering AndEngine Game Development
- Python忍者秘籍
- 微服務從小白到專家:Spring Cloud和Kubernetes實戰
- Scala Data Analysis Cookbook
- Mastering Concurrency Programming with Java 9(Second Edition)
- NGUI for Unity
- 3ds Max 2018從入門到精通
- Web開發新體驗
- Learning Perforce SCM
- 算法學習與應用從入門到精通
- ASP.NET開發技巧精講