Python Testing with pytest

Simple, Rapid, Effective, and Scalable



Bookstore > Books > Python Testing with pytest

Price$20.50 - $43.93
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.





4 5 74

Similar Books


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:  $23.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:  $35.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:  $29.99  |  Publisher:  Packt Publishing  |  Release:  2018

Instant Mock Testing with PowerMock

Instant Mock Testing with PowerMock

by Deep Shah

Writing good unit tests can be hard in situations where we have to deal with static, final, or private methods. Sometimes, even a good design is sacrificed for the sake of testability. A mocking framework's ability to create mocks for almost any scenario enables us to focus on accurately programming for a business environment.Starting wit...

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

Web Penetration Testing with Kali Linux, 3rd Edition

Web Penetration Testing with Kali Linux, 3rd Edition

by Gilberto Najera-Gutierrez, Juned Ahmed Ansari

Web Penetration Testing with Kali Linux - 3rd Edition shows you how to set up a lab, helps you understand the nature and mechanics of attacking websites, and explains classical attacks in great depth. This edition is heavily updated for the latest Kali Linux changes and the most recent attacks. Kali Linux shines when it comes to client-si...

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

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 libr...

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

Learning Selenium Testing Tools with Python

Learning Selenium Testing Tools with Python

by Unmesh Gundecha

Selenium WebDriver is a popular automated testing tool for web applications. Python is one of the top programming languages and when used with Selenium it can automate and test web applications. Using Python's unittest module, you can write test cases in Selenium. Over the years, Selenium has become a very powerful testing platform and ma...

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