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

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.

主站蜘蛛池模板: 运城市| 灌云县| 蓝田县| 台湾省| 手机| 海晏县| 鄂尔多斯市| 陇川县| 敦煌市| 资阳市| 宜兰县| 改则县| 句容市| 修水县| 赤水市| 陆丰市| 龙川县| 屯昌县| 阿瓦提县| 托里县| 高碑店市| 布尔津县| 尚志市| 冷水江市| 和林格尔县| 毕节市| 西和县| 武胜县| 曲阳县| 东丰县| 呼伦贝尔市| 雷波县| 凤庆县| 镶黄旗| 高密市| 五指山市| 永丰县| 博爱县| 肇东市| 西盟| 沈阳市|