© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. PajankarPython Unit Test Automationhttps://doi.org/10.1007/978-1-4842-7854-3_4

4. nose and nose2

Ashwin Pajankar1  
(1)
Nashik, Maharashtra, India
 

The last chapter introduced xUnit and unittest. In this chapter, you will explore yet another unit-testing API for Python, called nose. Its tagline is nose extends unittest to make testing easier.

You can use nose’s API to write and run automated tests. You can also use nose to run tests written in other frameworks like unittest. This chapter also explores the next actively developed and maintained iteration of nose, nose2.

Introduction to nose

nose is not part of Python’s standard library. You have to install it ...

Get Python Unit Test Automation: Automate, Organize, and Execute Unit Tests in Python 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.