官术网_书友最值得收藏!

Summary

In this chapter, you got the general understanding of TDD practice and insights into what TDD is and what it isn't. You learned that it is a way to design code through a 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 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 very important tools that are 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.

主站蜘蛛池模板: 航空| 娄底市| 宾川县| 福安市| 义乌市| 交城县| 麻栗坡县| 高邮市| 宁晋县| 马关县| 双城市| 台东市| 甘洛县| 厦门市| 方山县| 雅安市| 阿巴嘎旗| 潮安县| 双辽市| 砚山县| 和林格尔县| 林甸县| 桐庐县| 仁怀市| 乌恰县| 铜梁县| 南澳县| 巴马| 彭山县| 虎林市| 全椒县| 巴中市| 锡林浩特市| 沐川县| 高唐县| 嵊州市| 宜宾县| 古蔺县| 湘西| 简阳市| 汝阳县|