Skip to main content

pytest

  • Chapter
  • First Online:
Python Unit Test Automation

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics