Python Testing with pytest

Simple, Rapid, Effective, and Scalable



Bookstore > Books > Python Testing with pytest

Price$30.54 - $32.91
Rating
AuthorBrian Okken
PublisherThe Pragmatic Programmers
Published2017
Pages220
LanguageEnglish
FormatPaper book / ebook (PDF)
ISBN-101680502409
ISBN-139781680502404
EBook Hardcover Paperback

For Python-based projects, pytest is the undeniable choice to test your code if you're looking for a full-featured, API-independent, flexible, and extensible testing framework. With a full-bodied fixture model that is unmatched in any other tool, the pytest framework gives you powerful features such as assert rewriting and plug-in capability - with no boilerplate code.

With simple step-by-step instructions and sample code, this book gets you up to speed quickly on this easy-to-learn and robust tool. 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. Use the built-in assert statements to reduce false test failures by separating setup and test failures. Test error conditions and corner cases with expected exception testing, and use one test to run many test cases with parameterized testing. 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 that elegantly express what you're testing and why.


  1. (2 books)


5 5 393

Similar Books


Python Testing with pytest, 2nd Edition

Python Testing with pytest, 2nd Edition

by Brian Okken

Test applications, packages, and libraries large and small with pytest, Python's most powerful testing framework. pytest helps you write tests quickly and keep them readable and maintainable. In this fully revised edition, explore pytest's superpowers - simple asserts, fixtures, parametrization, markers, and plugins - while crea...

Price:  $41.99  |  Publisher:  The Pragmatic Programmers  |  Release:  2022

Java Testing with Spock

Java Testing with Spock

by Konstantinos Kapelonis, Luke Daley

Java Testing with Spock teaches you how to use Spock for a wide range of testing use cases in Java. Readers new to Groovy will appreciate the succinct language tutorial that'll give you just enough Groovy to use Spock effectively.Spock combines the features of tools like JUnit, Mockito, and JBehave into a single powerful Java testing...

Price:  $18.00  |  Publisher:  Manning  |  Release:  2016

Python Concurrency with asyncio

Python Concurrency with asyncio

by Matthew Fowler

Python is flexible, versatile, and easy to learn. It can also be very slow compared to lower-level languages. Python Concurrency with asyncio teaches you how to boost Python's performance by applying a variety of concurrency techniques. You'll learn how the complex-but-powerful asyncio library can achieve concurrency with just a...

Price:  $51.99  |  Publisher:  Manning  |  Release:  2022

Learning Python Testing

Learning Python Testing

by Daniel Arbuckle

Automated testing is the best way to increase efficiency and decrease the defects of software testing. It takes away much of the effort on your part so that you can find bugs early and easily. The Python unit testing framework makes it easy to write efficient automated test cases in Python. Applications involving many paradigms and styles...

Price:  $39.99  |  Publisher:  Packt Publishing  |  Release:  2014

Web Penetration Testing with Kali Linux

Web Penetration Testing with Kali Linux

by Joseph Muniz, Aamir Lakhani

Kali Linux is built for professional penetration testing and security auditing. It is the next-generation of BackTrack, the most popular open-source penetration toolkit in the world. Readers will learn how to think like real attackers, exploit systems, and expose vulnerabilities.Even though web applications are developed in a very secure ...

Price:  $29.99  |  Publisher:  Packt Publishing  |  Release:  2013

Python Testing Cookbook, 2nd Edition

Python Testing Cookbook, 2nd Edition

by Greg L. Turnquist, Bhaskar N. Das

Automated testing is the best way to increase efficiency while reducing the defects of software testing. It helps find bugs in code easily and at an early stage so that they can be tackled efficiently. This book delves into essential testing concepts used in Python to help you build robust and maintainable code.Python Testing Cookbook beg...

Price:  $44.99  |  Publisher:  Packt Publishing  |  Release:  2018

Hands-On Automation Testing with Java for Beginners

Hands-On Automation Testing with Java for Beginners

by Rahul Shetty

Java is one of the most commonly-used software languages by programmers and developers. Are you from a non-technical background and looking to master Java for your automation needs? Then Hands-On Automation Testing with Java for Beginners is for you.This book provides you with efficient techniques to effectively handle Java-related automa...

Price:  $15.24  |  Publisher:  Packt Publishing  |  Release:  2018

Building and Testing with Gradle

Building and Testing with Gradle

by Tim Berglund, Matthew McCullough

Build and test software written in Java and many other languages with Gradle, the open source project automation tool that's getting a lot of attention. This concise introduction provides numerous code examples to help you explore Gradle, both as a build tool and as a complete solution for automating the compilation, test, and releas...

Price:  $16.99  |  Publisher:  O'Reilly Media  |  Release:  2011