Chapter 10. Tools to Improve Test-Driven Development

Up to this point, we have mostly been looking at how to write and run tests. In this chapter, we will turn our attention to integrating the tests with the wider development environment. Having tests integrated into the development environment is important because it allows us to set up an automated process through which tests are executed regularly. We will also look at other tools that can improve the way we do TDD—from other test runners to libraries that make asserting easier.

TDD tools

We looked at the nose2 test runner earlier in this book. Python has other popular third-party test runners. Python also has a number of libraries to make assertions more flexible and readable. These libraries ...

Get Test-Driven Python Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.