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

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
主站蜘蛛池模板: 浪卡子县| 台中市| 余姚市| 永和县| 唐河县| 万年县| 瓦房店市| 汪清县| 儋州市| 舞钢市| 普陀区| 花莲市| 陆丰市| 上杭县| 迁安市| 雷州市| 恩平市| 曲麻莱县| 京山县| 海晏县| 淮南市| 叶城县| 泰安市| 海门市| 黄龙县| 朝阳县| 长葛市| 织金县| 岚皋县| 遵化市| 泗阳县| 定陶县| 清丰县| 睢宁县| 榆社县| 新沂市| 威宁| 基隆市| 渝北区| 鹤山市| 虞城县|