Abstract
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 test framework that’s capable of discovering and running tests written in unittest and nose. It should be advanced and must be under active development. The answer is pytest.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2017 Ashwin Pajankar
About this chapter
Cite this chapter
Pajankar, A. (2017). pytest. In: Python Unit Test Automation . Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2677-3_5
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2677-3_5
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2676-6
Online ISBN: 978-1-4842-2677-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)