Python Testing Cookbook, 2nd Edition

Easy solutions to test your Python projects using test-driven development and Selenium



Bookstore > Books > Python Testing Cookbook, 2nd Edition

Python Testing Cookbook, 2nd Edition
Buy
Preview
Price$35.99 - $44.99
Rating
AuthorsGreg L. Turnquist, Bhaskar N. Das
PublisherPackt Publishing
Published2018
Pages396
LanguageEnglish
FormatPaper book / ebook (PDF)
ISBN-101787122522
ISBN-139781787122529
EBook Hardcover Paperback

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 begins with a brief introduction to Python's unit testing framework to help you write automated test cases. You will learn how to write suitable test sets for your software and run automated test suites with Nose. You will then work with the unittest.mock library, which allows you to replace the parts of your system that are being tested with mock objects and make assertions about how they have been used. You will also see how to apply Test-driven Development (TDD) and Behavior-driven Development (BDD) and how to eliminate issues caused by TDD. The book explains how to integrate automated tests using Continuous Integration and perform smoke/load testing. It also covers best practices and will help you solve persistent testing issues in Python. The book concludes by helping you understand how doctest works and how Selenium can be used to test code efficiently.




Similar Books


Python Cookbook, 2nd Edition

Python Cookbook, 2nd Edition

Portable, powerful, and a breeze to use, Python is the popular open source object-oriented programming language used for both standalone programs and scripting applications. It is now being used by an increasing number of major organizations, including NASA and Google.Updated for Python 2.4, The Python Cookbook, 2nd Edition offers a wealt...
Python Geospatial Development, 2nd Edition

Python Geospatial Development, 2nd Edition

Geospatial development links your data to places on the Earth's surface. Writing geospatial programs involves tasks such as grouping data by location, storing and analyzing large amounts of spatial information, performing complex geospatial calculations, and drawing colorful interactive maps. In order to do this well, you'll need appropri...
Java Cookbook, 2nd Edition

Java Cookbook, 2nd Edition

You have a choice: you can wade your way through lengthy Java tutorials and figure things out by trial and error, or you can pick up Java Cookbook, 2nd Edition and get to the heart of what you need to know when you need to know it.With the completely revised and thoroughly updated Java Cookbook, 2nd Edition, Java developers like you will ...
Pro Python System Administration, 2nd Edition

Pro Python System Administration, 2nd Edition

Pro Python System Administration, 2nd Edition explains and shows how to apply Python scripting in practice. It will show you how to approach and resolve real-world issues that most system administrators will come across in their careers. This book has been updated using Python 2.7 and Python 3 where appropriate. It also uses various new a...
Beginning Python Games Development, 2nd Edition

Beginning Python Games Development, 2nd Edition

Learn how to create compelling games using Python and the PyGame games development library. Beginning Python Games Development, 2nd Edition will teach you how to create visuals, do event handling, create 3D games, add media elements, and integrate OpenGL into your Python game.In this update to the first ever book to cover the popular open...
Linux Cookbook, 2nd Edition

Linux Cookbook, 2nd Edition

The Linux Cookbook, 2nd Edition is your guide to getting the most out of Linux. Organized by general task (such as working with text, managing files, and manipulating graphics), each section contains a series of step-by-step recipes that help you to get your work done quickly and efficiently, most often from the command line. Nearly 50 pe...