Goodreads helps you keep track of books you want to read.
Start by marking “Python Testing with Pytest: Simple, Rapid, Effective, and Scalable” as Want to Read:
Python Testing with Pytest: Simple, Rapid, Effective, and Scalable
Enlarge cover
Rate this book
Clear rating
Open Preview

Python Testing with Pytest: Simple, Rapid, Effective, and Scalable

4.09  ·  Rating details ·  151 ratings  ·  17 reviews
Do less work when testing your Python code, but be just as expressive, just as elegant, and just as readable. The pytest testing framework helps you write tests quickly and keep them readable and maintainable - with no boilerplate code. 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 tes ...more
Paperback
Published October 25th 2017 by Pragmatic Bookshelf
More Details... Edit Details

Friend Reviews

To see what your friends thought of this book, please sign up.

Reader Q&A

To ask other readers questions about Python Testing with Pytest, please sign up.

Be the first to ask a question about Python Testing with Pytest

Community Reviews

Showing 1-30
Average rating 4.09  · 
Rating details
 ·  151 ratings  ·  17 reviews


More filters
 | 
Sort order
Start your review of Python Testing with Pytest: Simple, Rapid, Effective, and Scalable
Toomas
Jan 27, 2018 rated it it was amazing
It covers a lot of ground for such a brief read. Would recommend to anyone starting out with Python, just to get the grip of how things should be built. For me personally, it filled in a lot of gaps in testing code with Python, which is the whole reason I bought this book.
Og Maciel
Oct 03, 2017 rated it it was amazing
Shelves: digital, owned
Though I'm already well versed in pytest usage, I enjoyed reading this book and found some interesting little gems which will definitely be useful for some of my projects. ...more
Marco Bizzarri
Apr 30, 2020 rated it it was amazing
I admit, this book is about two of my favorite topics, namely unit-testing and Python.

The online documenation about pytest is quite good, so the question is, why a book on pytest?

Also, a simple google search can land you on multiple pages with a lot of answers; again, why a book?

The problem with online documentation and results of google searches is that quite often you end up with an answer to a specific question, like: "How do I do X"; sometimes the answer is not exactly X, but it's usually e
...more
Jan Kroken
The book has significant issues with pacing. Some chapters feels like they have almost no content and the text is just stretched out to fill the page count, mainly through long examples and trivial printouts of the pytest "-help" output. Other sections feels too short.

Overall, I would absolutely not recommend this book for learning TDD (for that, "Test Driven Web Development with Python" (the testing goat book) is an infinitely better option). It is also not very successful as a reference. It d
...more
Benjamin
Jul 18, 2017 rated it really liked it
This book is very, very good. In terms of being a thorough introduction to pytest, it is the best there is, and it is nearly perfect. In terms of introducing test-driven design, Brian Okken is not quite ambitious enough. If you haven't read a book about test-driven design, get one along with this book. One homes a future edition shows the TDD process through pytest, which is the best way to learn it.

...more
Jaewoo
Feb 02, 2019 rated it it was amazing  ·  review of another edition
This review has been hidden because it contains spoilers. To view it, click here.
Johnny
Sep 08, 2020 rated it it was amazing
A good introduction to pytest and testing in the Python world in general. You learn all the important parts and will be able to test your own application with this newly gained knowledge. A bit more about testing Flask applications would be appreciated. Nevertheless, I got a lot out of this book and the section about plugins and extensions will help you to improve your pytest experience even more.
Tautvydas Petkus
Mar 05, 2020 rated it it was ok
Is it worth 43$ price tag? Not really.

If you have experience writing tests in Python and just want to refine skills, there are several topics, which might help. But majority of the content might look underwhelming.

If you haven't written any tests using Python yet - this might be valuable. However - this book won't give a tutorial how to write good tests. Only the tools and how to use them
...more
Affad Shaikh
Dec 11, 2019 rated it it was ok
This is an extremely biased rating. Niether the author or the contents of the book are at issue its more the assigning the book as a part of a curriculum to which students were not even capable of doing simple coding. Struggling through this book and being tested on this material was traumatic and until i work through that trauma this books rating will simply stand where its at.
Eric Casteleijn
Nov 20, 2017 rated it really liked it
A valuable resource for one of the greatest tools in the Python ecosystem. The writing isn't always flawless, but the information is solid, whether you're new to pytest, or have been using it for a while, and are looking to get even more out of it. ...more
Tadas Antanavicius
Dec 26, 2017 rated it really liked it
Useful, practical book if you're looking to start a deep dive into pytest. Having limited experience writing tests in python, this was easy to follow and understand, and seems to have covered all the questions I would have had about getting going with a testing framework. ...more
Michael
Jul 18, 2018 rated it it was amazing
The book is easy to follow. It's a perfect guide for developers starting their first steps in Python testing. ...more
Tbueno
Dec 10, 2020 rated it really liked it
Great book, straight to the point and covering the most important aspects of testing Python applications.
Chitrank Dixit
Jan 23, 2021 rated it it was amazing
A book that covers all the details for pytest.
Ranjan Lamichhane
Sep 18, 2019 rated it really liked it
Pretty good introduction to TDD, doesn't have much to offer on BDD though! I think the examples could've been better and less redundant. However, overall a great book. ...more
Kingsborough Library
Dec 21, 2017 rated it it was amazing
Very useful!
Ruhan Bidart
Jul 19, 2020 rated it it was amazing
Shelves: code
A good reference to learn all the things you need to build well-done tests with pytest.
Andrei Mihai
rated it it was amazing
Sep 16, 2020
John Smith
rated it liked it
Jun 06, 2019
Eustaquio Rangel
rated it really liked it
Jan 16, 2018
bjelly
rated it it was amazing
Aug 15, 2020
Jade Costa
rated it liked it
Jul 30, 2019
Steven Xu
rated it it was amazing
Apr 19, 2020
Ray
rated it really liked it
Aug 20, 2018
Kaspars
rated it really liked it
Nov 15, 2020
Peder Andresen
rated it really liked it
Feb 25, 2020
Stealf
rated it really liked it
Nov 29, 2020
Daniel Stracaboško
rated it it was amazing
Mar 04, 2020
Jason
rated it liked it
Apr 17, 2018
Jin Pyo
rated it really liked it
Jan 11, 2021
« previous 1 3 4 5 6 next »
There are no discussion topics on this book yet. Be the first to start one »

Readers also enjoyed

  • Fluent Python: Clear, Concise, and Effective Programming
  • Effective Python: 90 Specific Ways to Write Better Python (Effective Software Development Series)
  • The Clean Coder: A Code of Conduct for Professional Programmers
  • Python Tricks: A Buffet of Awesome Python Features
  • Architecture Patterns with Python: How to Apply DDD, Ports and Adapters, and Enterprise Architecture Design Patterns in a Pythonic Way
  • Python Cookbook
  • How Not to Be Wrong: The Power of Mathematical Thinking
  • Learning Python
  • Masters of Doom: How Two Guys Created an Empire and Transformed Pop Culture
  • The Man Who Loved Only Numbers: The Story of  Paul Erdős and the Search for Mathematical Truth
  • Effective Java
  • Clean Architecture
  • The Art of Unit Testing: With Examples in .NET
  • The 5 A.M. Miracle: Dominate Your Day Before Breakfast
  • Петровы в гриппе и вокруг него
  • Using Docker
  • Natural Language Processing with Pytorch: Build Intelligent Language Applications Using Deep Learning
  • Pattern Recognition and Machine Learning
See similar books…

Goodreads is hiring!

If you like books and love to build cool products, we may be looking for you.
Learn more »

News & Interviews

Need another excuse to treat yourself to a new book this week? We've got you covered with the buzziest new releases of the day. To create our...
45 likes · 12 comments