Okken, Brian
Python Testing with pytest: Simple, Rapid, Effective, and Scalable
- ISBN 13:
- 9781680508604
- author:
- Okken, Brian
- format:
- Paperback / softback
- publisher:
- Pragmatic Bookshelf
- language:
- English
- Publication Year:
- 2022
- Pages:
- 250
- Dimensions:
- 23.5 x 19 centimetres (0.36 kg)
- Genre:
- Computers, Web, Web Programming,
- Condition:
- New
- Availability:
- Item usually sent within 20 working days
Description
Python Testing with Pytest: A Comprehensive Guide to Rapid and Effective Testing. Learn how to harness the power of pytest, Python's most powerful testing framework, to write tests quickly and keep them readable and maintainable. This fully revised edition explores pytest's key features, including simple asserts, fixtures, parametrization, markers, and plugins, as well as creating simple tests and test suites against a small database application. Discover how pytest's fixture model allows you to share test data and setup procedures across multiple layers of tests, making it easy to write both small tests and complex functional testing. With this book, you'll learn how to speed up test times by distributing tests across multiple processors and running tests in parallel, using Python's built-in assert statements, and more. By the end of this book, you'll be able to write short, maintainable tests that elegantly express what you're testing, and use pytest's powerful features to simplify your testing workflow.