![Amazon prime logo](https://m.media-amazon.com/images/G/01/marketing/prime/new_prime_logo_RGB_blue._CB426090081_.png)
Enjoy fast, free delivery, exclusive deals, and award-winning movies & TV shows with Prime
Try Prime
and start saving today with fast, free delivery
Amazon Prime includes:
Fast, FREE Delivery is available to Prime members. To join, select "Try Amazon Prime and start saving today with Fast, FREE Delivery" below the Add to Cart button.
Amazon Prime members enjoy:- Cardmembers earn 5% Back at Amazon.com with a Prime Credit Card.
- Unlimited Free Two-Day Delivery
- Streaming of thousands of movies and TV shows with limited ads on Prime Video.
- A Kindle book to borrow for free each month - with no due dates
- Listen to over 2 million songs and hundreds of playlists
- Unlimited photo storage with anywhere access
Important: Your credit card will NOT be charged when you start your free trial or if you cancel during the trial period. If you're happy with Amazon Prime, do nothing. At the end of the free trial, your membership will automatically upgrade to a monthly membership.
![Kindle app logo image](https://m.media-amazon.com/images/G/01/kindle/app/kindle-app-logo._CB668847749_.png)
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
pytest Quick Start Guide: Write better Python code with simple and maintainable tests
Purchase options and add-ons
Learn the pytest way to write simple tests which can also be used to write complex tests
Key Features
- Become proficient with pytest from day one by solving real-world testing problems
- Use pytest to write tests more efficiently
- Scale from simple to complex and functional testing
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 workflow, exploring powerful mechanisms and plugins to facilitate many common testing tasks. You will also see how to use pytest in existing unittest-based test suites and will learn some tricks to make the jump to a pytest-style test suite quickly and easily.
What you will learn
- Write and run simple and complex tests
- Organize tests in fles and directories
- Find out how to be more productive on the command line
- Markers and how to skip, xfail and parametrize tests
- Explore fxtures and techniques to use them effectively, such as tmpdir, pytestconfg, and monkeypatch
- Convert unittest suites to pytest using little-known techniques
- Use third-party plugins
Who this book is for
This book is for Python programmers that want to learn more about testing. This book is also for QA testers, and those who already benefit from programming with tests daily but want to improve their existing testing tools.
Table of Contents
- Introducing pytest
- Writing and running tests
- Markers and parametrization
- Fixtures
- Plugins
- Converting unittest suites to pytest
- Wrappin up
- ISBN-101789347564
- ISBN-13978-1789347562
- PublisherPackt Publishing
- Publication dateAugust 29, 2018
- LanguageEnglish
- Dimensions9.25 x 7.52 x 0.35 inches
- Print length160 pages
Frequently bought together
![pytest Quick Start Guide: Write better Python code with simple and maintainable tests](https://images-na.ssl-images-amazon.com/images/I/61YcgQPPHZL._AC_UL116_SR116,116_.jpg)
Customers who viewed this item also viewed
Editorial Reviews
About the Author
Bruno Oliveira is a software developer with 18 years experience working at ESSS, developing desktop and web applications for simulation and numerical analysis for several industry sectors including oil and gas, aerospace, automotive, and chemical processes. Having taken part in the development of an internal testing framework to attend to the various needs of the applications he worked with, and having always been interested in testing and software quality, in 2012, Bruno took note of pytest and immediately fell in love with the project. He started contributing whenever he could and has been a pytest core contributor since 2014.
Product details
- Publisher : Packt Publishing (August 29, 2018)
- Language : English
- Paperback : 160 pages
- ISBN-10 : 1789347564
- ISBN-13 : 978-1789347562
- Item Weight : 10.2 ounces
- Dimensions : 9.25 x 7.52 x 0.35 inches
- Best Sellers Rank: #3,984,392 in Books (See Top 100 in Books)
- #1,741 in Software Testing
- #4,280 in Python Programming
- #14,005 in Internet & Social Media
- Customer Reviews:
About the author
![Bruno Oliveira](https://m.media-amazon.com/images/S/amzn-author-media-prod/d58sd61nej5llae28q8vnj0f00._SY600_.jpg)
Bruno Gomes de Oliveira é Bacharel em Teologia, missionário voluntário no sistema socioeducativo e capelão, com mais de uma década de caminhada de fé. Casado com Brenda Oliveira e pai do Eduardo, dedica sua vida ao serviço cristão, ao ensino da Palavra e ao cuidado espiritual, buscando impactar vidas por meio do evangelho.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonReviews with images
![Well written and direct to the point](https://images-na.ssl-images-amazon.com/images/G/01/x-locale/common/transparent-pixel._V192234675_.gif)
Well written and direct to the point
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
- Reviewed in the United States on April 20, 2019As advertised, this book is a quick start guide to get you familiar with the core capabilities of the pytest framework and best practices for using it in production. Collaboration and version control are always kept in mind; the idea of why you're testing feels like it's always present, so the topics and tips have context with what you're likely going to encounter, rather than simply covered in isolation. Throughout the book, I felt like I'm getting an insider's perspective and not only an overview, but recommendations on the best way to proceed. In a relatively brief span of pages the author delivers a solid foundation for the reader in a humorous and conversational tone that makes the content an easy read. I highly recommend.
- Reviewed in the United States on October 30, 2021Self taught Python programmer, so, testing and test driven development are new to me. I'm careful about introducing too many packages that overlap with the standard library, but, I wanted to learn more about pytest as an alternative to unittest. Written by a contributor to the project, this book was an excellent and succinct introduction to (what i assume) is the 20% of pytest that is used 80% of the time.
- Reviewed in the United States on June 17, 2020This is a well-written book, and it's pretty easy to get going. The highlight for me is the way the book not only explains how to use pytest but also why its features are useful, with practical examples and tips.
I'm sure that even readers that have been using pytest for a few years will benefit and gain some insights.
5.0 out of 5 starsThis is a well-written book, and it's pretty easy to get going. The highlight for me is the way the book not only explains how to use pytest but also why its features are useful, with practical examples and tips.Well written and direct to the point
Reviewed in the United States on June 17, 2020
I'm sure that even readers that have been using pytest for a few years will benefit and gain some insights.
Images in this review
- Reviewed in the United States on December 22, 2018the title says it's a quick guide, but the book reads like random notes written by the author for himself.
Top reviews from other countries
-
Anderson FerreiraReviewed in Brazil on December 19, 2022
5.0 out of 5 stars Excelente!
O livro é excelente, com detalhes e ótimas dicas de uso, não é muito aprofundado no pytest mas é pra quem quer e precisa usar rápido.
-
KundeReviewed in Germany on September 3, 2020
2.0 out of 5 stars überflüssig
Kurzfassung der sehr guten und verständlichen pytest Online Dokumentation. Da die Befehlssyntax nicht dokumentiert wird, muss man dort ohnehin nachschlagen. Sehr begrenzte zusätzliche Informationen. Das begleitende Beispiel-Repository ist ebenfalls nicht dokumentiert.
- Denivy Braiam RuckReviewed in Brazil on November 21, 2018
5.0 out of 5 stars Highly recommend it
A very rounded book with lots of tips and tricks both for python development and a healthy testing environment. It offers real examples and solutions for problems you may face in production.
The book itself has a very near-the-user language and is very enjoyable to read! No issues found in the Kindle version.