© Ashwin Pajankar 2017
Ashwin PajankarPython Unit Test Automation 10.1007/978-1-4842-2677-3_5

5. pytest

Ashwin Pajankar
(1)
Nashik, Maharashtra, India
 
In an earlier chapter, we explored nose, which is an advanced and better framework for Python testing. Unfortunately, nose has not been under active development for the past several years. That makes it an unsuitable candidate for a test framework when you want to choose something for a long-term project. Moreover, there are many projects that use unittest or nose or a combination of both. You definitely need a framework that has more features than unittest, and unlike nose, it should be under active development. nose2 is more of a test-runner for unittest and an almost defunct tool. You need a unit ...

Get Python Unit Test Automation: Practical Techniques for Python Developers and Testers 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.