Minted - Shop now
$19.42 with 35 percent savings
List Price: $29.99
Get Fast, Free Shipping with Amazon Prime FREE Returns
FREE delivery Monday, February 17 on orders shipped by Amazon over $35
Or fastest delivery Sunday, February 16. Order within 15 hrs 37 mins
In Stock
$$19.42 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$19.42
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Ships from
Amazon.com
Amazon.com
Ships from
Amazon.com
Sold by
Amazon.com
Amazon.com
Sold by
Amazon.com
Returns
30-day refund/replacement
30-day refund/replacement
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Kindle app logo image

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.

QR code to download the Kindle App

Follow the author

Something went wrong. Please try your request again later.

pytest Quick Start Guide: Write better Python code with simple and maintainable tests

4.1 4.1 out of 5 stars 19 ratings

{"desktop_buybox_group_1":[{"displayPrice":"$19.42","priceAmount":19.42,"currencySymbol":"$","integerValue":"19","decimalSeparator":".","fractionalValue":"42","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"6a1eKRdlEYEYQ7189H%2BREJ3ahg5dii0hx%2FajJxDnHtfA4gNvo4k2vFvs2VH2db1V26MZohMXnEWnsgwz15BQu3cauUyRAgFDiV9q23xhrHa8lyBaDEkU5WWYcJazAPtpxL970GU7Np7b9kgrVlpcEw%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}]}

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

  1. Introducing pytest
  2. Writing and running tests
  3. Markers and parametrization
  4. Fixtures
  5. Plugins
  6. Converting unittest suites to pytest
  7. Wrappin up

Frequently bought together

This item: pytest Quick Start Guide: Write better Python code with simple and maintainable tests
$19.42
Get it as soon as Monday, Feb 17
In Stock
Ships from and sold by Amazon.com.
+
$39.49
Get it as soon as Monday, Feb 17
Only 19 left in stock (more on the way).
Ships from and sold by Amazon.com.
Total price: $00
To see our price, add these items to your cart.
Details
Added to Cart
spCSRF_Treatment
One of these items ships sooner than the other.
Choose items to buy together.

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
  • Customer Reviews:
    4.1 4.1 out of 5 stars 19 ratings

About the author

Follow authors to get new release updates, plus improved recommendations.
Bruno Oliveira
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

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

4.1 out of 5 stars
19 global ratings

Review this product

Share your thoughts with other customers
Well written and direct to the point
5 out of 5 stars
Well written and direct to the point
This 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.
Thank you for your feedback
Sorry, there was an error
Sorry we couldn't load the review

Top reviews from the United States

  • Reviewed in the United States on April 20, 2019
    As 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.
    9 people found this helpful
    Report
  • Reviewed in the United States on October 30, 2021
    Self 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.
    One person found this helpful
    Report
  • Reviewed in the United States on June 17, 2020
    This 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.
    Customer image
    5.0 out of 5 stars
    Well written and direct to the point

    Reviewed in the United States on June 17, 2020
    This 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.
    Images in this review
    Customer imageCustomer imageCustomer image
    One person found this helpful
    Report
  • Reviewed in the United States on December 22, 2018
    the title says it's a quick guide, but the book reads like random notes written by the author for himself.
    2 people found this helpful
    Report

Top reviews from other countries

Translate all reviews to English
  • Anderson Ferreira
    5.0 out of 5 stars Excelente!
    Reviewed in Brazil on December 19, 2022
    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.
  • Kunde
    2.0 out of 5 stars überflüssig
    Reviewed in Germany on September 3, 2020
    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 Ruck
    5.0 out of 5 stars Highly recommend it
    Reviewed in Brazil on November 21, 2018
    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.