Ebook: Pytest quick start guide write better Python code with simple and maintainable tests
Author: Oliveira Bruno
- Tags: Computer software--Testing, Debugging in computer science, Python (Computer program language), Livres électroniques, Computer software -- Testing
- Year: 2018
- Publisher: Packt Publishing
- City: Birmingham;UK
- Language: English
- epub
Learn the pytest way to write simple tests which can also be used to write complex tests
Key Features
Book Description
Python's standard unittest module is based on the xUnit family of frameworks, which has its origins in Smalltalk and Java, and tends to be verbose to use and not easily extensible.The pytest framework on the other hand is very simple to get started, but powerful enough to cover complex testing integration scenarios, being considered by many the true Pythonic approach to testing in Python.
In this book, you will learn how to get started right away and get the most out of pytest in your daily work?ow, exploring powerful mechanisms and plugins to facilitate many common testing tasks. You will also see how to use pytest in existing unittest-based test...