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

Chapter 3. Testability – Writing Testable Code

In the previous chapter, we covered a very important architectural attribute of software, namely, modifiability, and its related aspects. In this chapter, the topic is a closely related quality attribute: testability of software.

We briefly covered testability in the first chapter of this book, where we understood what testability is, and how it relates to the complexity of the code. In this chapter, we will look into the different aspects of software testability in detail.

Software testing by itself has developed into a large field with its own standards and unique set of tools and processes. The focus of this chapter is not to cover the formal aspects of software testing. Instead, what we will strive to do here is to understand software testing from an architectural perspective and understand its relation to the other quality attributes and, in the second half of this chapter, discuss the Python tools and libraries relevant to our discussion on software testing using Python.

We will cover the following topics in this chapter:

  • Understanding testability
  • White-box testing principles
  • Test-driven development
  • TDD with palindromes
主站蜘蛛池模板: 临邑县| 剑川县| 图木舒克市| 遂宁市| 建阳市| 沂源县| 宝鸡市| 阿勒泰市| 开平市| 永州市| 临城县| 额尔古纳市| 张家港市| 左贡县| 康乐县| 翁源县| 油尖旺区| 固镇县| 彰化市| 革吉县| 大姚县| 三亚市| 炉霍县| 那坡县| 炉霍县| 牡丹江市| 昌都县| 惠东县| 凉城县| 钟山县| 巴林右旗| 泰安市| 白水县| 乃东县| 广东省| 连山| 德钦县| 兴安盟| 洞口县| 青海省| 嵊州市|