Python Testing with pytest: Simple, Rapid, Effective, and Scalable
Author | : | |
Rating | : | 4.59 (845 Votes) |
Asin | : | 1680502409 |
Format Type | : | paperback |
Number of Pages | : | 200 Pages |
Publish Date | : | 2013-10-16 |
Language | : | English |
DESCRIPTION:
About the AuthorBrian Okken is a lead software engineer with two decades of R&D experience developing test and measurement instruments. He hosts the Test & Code podcast and co-hosts the Python Bytes podcast.
Use the built-in assert statements to reduce false test failures by separating setup and test failures. Using a robust yet simple fixture model, it's just as easy to write small tests with pytest as it is to scale up to complex functional testing for applications, packages, and libraries. Write short, maintainable tests that elegantly express what you're testing. Add powerful testing features and still speed up test times by distributing tests across multiple processors and running tests in parallel. Do less work when testing your Python code, but be just as expressive, just as elegant, and just as readable. Extend pytest with plugins, connect it to continuous integration systems, and use it in tandem with tox, mock, coverage, unittest, and doctest.Write simple, maintainable tests
Brian Okken is a lead software engineer with two decades of R&D experience developing test and measurement instruments. He hosts the Test & Code podcast and co-hosts the Python Bytes podcast.