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

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.

主站蜘蛛池模板: 白沙| 丰顺县| 扎兰屯市| 四平市| 屏山县| 多伦县| 太康县| 商洛市| 三明市| 色达县| 廊坊市| 奉贤区| 广州市| 资溪县| 富顺县| 灌云县| 宁波市| 济南市| 卢氏县| 绿春县| 哈巴河县| 苍南县| 兴化市| 昔阳县| 苍南县| 二连浩特市| 泗水县| 阳信县| 革吉县| 赣州市| 休宁县| 彩票| 建水县| 仪征市| 和田县| 资源县| 新巴尔虎右旗| 平山县| 宁强县| 鹤峰县| 景谷|