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

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




4 5 21

Similar Books


Beginning Python Games Development, 2nd Edition

Beginning Python Games Development, 2nd Edition

by Harrison Kinsley, Will McGugan

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

Price:  $39.49  |  Publisher:  Apress  |  Release:  2015

Python Cookbook, 2nd Edition

Python Cookbook, 2nd Edition

by Alex Martelli, Anna Ravenscroft, David Ascher

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

Price:  $5.18  |  Publisher:  O'Reilly Media  |  Release:  2005

Python Automation Cookbook, 2nd Edition

Python Automation Cookbook, 2nd Edition

by Jaime Buelta

In this updated and extended version of Python Automation Cookbook, each chapter now comprises the newest recipes and is revised to align with Python 3.8 and higher. The book includes three new chapters that focus on using Python for test automation, machine learning projects, and for working with messy data.This edition will enable you t...

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

Python Geospatial Development, 2nd Edition

Python Geospatial Development, 2nd Edition

by Erik Westra

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

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

ElasticSearch Cookbook, 2nd Edition

ElasticSearch Cookbook, 2nd Edition

by Alberto Paro

This book will guide you through the complete ElasticSearch ecosystem. From choosing the correct transport layer and communicating with the server to creating and customizing internal actions, you will develop an in-depth knowledge of the implementation of the ElasticSearch architecture.After creating complex queries and analytics, mappin...

Price:  $21.72  |  Publisher:  Packt Publishing  |  Release:  2015

Visual Studio 2015 Cookbook, 2nd Edition

Visual Studio 2015 Cookbook, 2nd Edition

by Jeff Martin

Visual Studio 2015 is the premier tool for developers targeting the Microsoft platform. Learning how to effectively use this technology can enhance your productivity while simplifying your most common tasks, allowing you more time to focus on your project. Visual Studio 2015 is packed with improvements that increase productivity, and this...

Price:  $34.99  |  Publisher:  Packt Publishing  |  Release:  2016

Java Cookbook, 2nd Edition

Java Cookbook, 2nd Edition

by Ian F. Darwin

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

Price:  $3.89  |  Publisher:  O'Reilly Media  |  Release:  2004

Windows PowerShell Cookbook, 2nd Edition

Windows PowerShell Cookbook, 2nd Edition

by Lee Holmes

This introduction to the Windows PowerShell language and scripting environment provides more than 430 task-oriented recipes to help you solve the most complex and pressing problems, and includes more than 100 tried-and-tested scripts that intermediate to advanced system administrators can copy and use immediately. You'll find hands-o...

Price:  $6.58  |  Publisher:  O'Reilly Media  |  Release:  2010