Summary

In this chapter, you looked at nose2, a powerful test runner and plugin suite, that extends the unittest framework. nose2 can be used as a drop-in replacement for the unittest test runner. It can also be used to extend unittest functionality with useful plugins. Finally, it can be used to write new types of tests such as function tests, parameterized tests, generated tests, and layer-based tests. nose2 also supports configuration files, so it can be run consistently between developers as well as integrating well with automation tools.

In the next chapter, you will take a look at some more advanced testing patterns.

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.