Deliver to Hong Kong
IFor best experience Get the App
Full description not available
M**Z
Excellent book on what makes pytest unique
I've been a developer for almost 30 years. I've used many test suites over that time. And these days, between on line documents and YouTube videos, recommending a book seems unspeakably "20th century." But I do recommend this book. I'm a latecomer to Python (I'm part of the perl generation). So this book, which is firmly grounded in established software testing practices and theories, takes a "here's what's unique to this language and this testing framework." It does this so well that it has improved my understanding of Python styles and idioms let alone getting me in to the depths of pytest, and what it offers that really makes it more effective and compact than any testing framework I've used before. And having the text there while you work with code is genuinely helpful. Plus books are solar powered and the batteries never run out!
P**O
pytest. no more. no less. perfect
If you just want to get started with unit-testing, skip this book.If you're a python programmer who knows (a little or a lot of) unit-testing you may want to learn how to better exploit the built-in fixtures and other goodies pytest has to offer. This book should scratch that itch. It stays on topic and talks about making pytest work for python unit-testing - no more, no less; it completely delivers on the promise of the title.This is a short well-edited book and an easy read. The first 150 pages include a fairly detailed overview and good (short) examples of the various cmd-line switches/options, a good discussion of conftest.py, and the other built-in fixtures. The last 30 pages or so is a series of short appendices about virtual environments, pip, pytest packages, and packaging python code. These are nice adjuncts that can help make your work more useable... and make you look good too. I was glad Brian avoided the subject of mocking, as that warrants either a book section or an entire book and anything less would be unfulfilling and distracting.Really nice work.
G**T
Solid pytest reference
Mr. Okken, who I learned about through his Python Bytes webcast, did a nice job on this first edition of the book. It works well to use as a reference and dip into on occasion.5 stars if he would include more in two areas:1) best practices on organizing testing files and getting tests to run in a predetermined order (so that "basic" tests will be caught early in the test cycle)2) how to best integrate with buyilt in logging module. I discovered this by accident when I added logging that Pytest captures it for output. It would be nice to see his professional opinions on it
M**S
Moses
This book on pytest is what you need for python testing.
A**R
Understand the in's and out's of pytest.
I bought this book because I wanted an organized walkthrough of Pytest. It delivered. Pytest has many features and is a big toolkit (containing fixtures, test runner, annotations, and more). Admittedly you can browse through the online docs or search through various presentations to get most of the data. But if you value your time and want to make sure that you don't miss out on an important feature, I highly recommend this book. It does a great job of explaining the options for invoking pytest (hint use -v), best practices for file layout, how to use fixtures, and extending pytest with plugins. If you work with Python you owe it to yourself to get this book.
M**N
Great book, well written!
Very well-written book, and wonderful accompanying github repo.The only downside is that this book is really just about pytest, and not about testing in general. What I mean is, you will need to supplement this book with more information, either Google searches or another textbook. For instance, the author spends about 1 or 2 pages on tox. Packaging is covered in only a cursory fashion in the appendix. And he does not mention behavioral testing (IIRC) or end-to-end testing.These are very minor issues, in my opinion, since the author makes no claims to cover these other things.
S**Y
Great book but very overpriced.
It’s a very slim volume for $35, especially considering that a lot of this information can be found on the internet or from a review of the pytest docs. I’d happily pay $15 for it to be pulled together and presented to me, but 35 makes the calculus more shakey
M**L
Nice and simple
I am scared of writing Tests but this book makes it look really easy. It was a nice and quick read and good for a quick reference guide.
W**O
very good book
if you are looking for something to start with pytest, this is the book. Very detailed and with a lot of tricks. I totally recommend it.
S**6
Guter Einstieg
Guter Einstiegin das Thema Pytest. Leicht verständlich.Die Einrichtung der Beispiele hat nicht fehlerfrei funktionert. Dafür der Punktabzug.Ansonsten gefälltmir das Buch sehr gut.
A**W
Good introduction to using pytest
I like the way the book is laid out. It doesn't assume you're an all round expert - and walks you through installing and setting various things up (via appendices) as well as providing decent clear descriptions of other Python related topics such as packaging. Exactly the sort of information, collated in one place, that is really useful.If you're a reasonably experienced developer and want to add some testing to your Python work - this would be an excellent place to start.
V**L
Indispensável
Excelente livro para quem está iniciando ou já trabalha com o framework de testes pytest. Didático e com foco no uso prático apresenta os conceitos de forma clara e é um excelente guia. Não deve faltar na biblioteca de um Desenvolvedro Python.
A**R
Drastically Improved My Understanding of Pytest
In my opinion anyone trying to write Python unit-tests will really appreciate this book if:1) one has obviously been using Python2) and preferably has basic understanding and use of Python's built-in Unittest framework.Although I had dabbled with the Pytest unittesting framework before, this time round it made a whole lot more sense.The author did a fantastic job of providing easy to follow and applicable examples of some of Pytest's major features (the ones a developer is most likely to use on a day-to-day basis). The official Pytest docs can be arduous to understand, but this book has become an invaluable tool.
Trustpilot
1 month ago
3 days ago