Python Testing Cookbook

Python Testing Cookbook
Author :
Publisher :
Total Pages : 396
Release :
ISBN-10 : OCLC:1105765735
ISBN-13 :
Rating : 4/5 (35 Downloads)

Book Synopsis Python Testing Cookbook by : Greg Turnquist

Download or read book Python Testing Cookbook written by Greg Turnquist and published by . This book was released on 2018 with total page 396 pages. Available in PDF, EPUB and Kindle. Book excerpt: Fix everyday testing problems in Python with the help of this solution-based guide About This Book Use powerful tools such as doctest and unittest to make testing convenient Apply automation testing to an existing legacy system that isn't test oriented A practical guide to ease testing in Python using real-world examples Who This Book Is For If you're a Python developer who wants to take testing to the next level and would like to expand your testing skills, this book is for you. It is assumed that you have some Python programming knowledge. What You Will Learn Run test cases from the command line with increased verbosity Write a Nose extension to pick tests based on regular expressions Create testable documentation using doctest Use Selenium to test the Web User Interface Write a testable story with Voidspace Mock and Nose Configure TeamCity to run Python tests on commit Update project-level scripts to provide coverage reports In Detail 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. Style and approach A solution-based approach consisting of over 50 recipes to ease testing Python code. Downloading the example code for this book You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit h ...


Python Testing Cookbook Related Books

Python Testing Cookbook
Language: en
Pages: 396
Authors: Greg Turnquist
Categories: Python (Computer program language)
Type: BOOK - Published: 2018 - Publisher:

DOWNLOAD EBOOK

Fix everyday testing problems in Python with the help of this solution-based guide About This Book Use powerful tools such as doctest and unittest to make testi
Python Penetration Testing Cookbook
Language: en
Pages: 216
Authors: Rejah Rehim
Categories: Computers
Type: BOOK - Published: 2017-11-28 - Publisher: Packt Publishing Ltd

DOWNLOAD EBOOK

Over 50+ hands-on recipes to help you pen test networks using Python, discover vulnerabilities, and find a recovery path About This Book Learn to detect and avo
Python Web Penetration Testing Cookbook
Language: en
Pages: 224
Authors: Cameron Buchanan
Categories: Computers
Type: BOOK - Published: 2015-06-24 - Publisher: Packt Publishing Ltd

DOWNLOAD EBOOK

This book gives you an arsenal of Python scripts perfect to use or to customize your needs for each stage of the testing process. Each chapter takes you step by
Web Security Testing Cookbook
Language: en
Pages: 312
Authors: Paco Hope
Categories: Computers
Type: BOOK - Published: 2009-05-15 - Publisher: "O'Reilly Media, Inc."

DOWNLOAD EBOOK

Offering developers an inexpensive way to include testing as part of the development cycle, this cookbook features scores of recipes for testing Web application
Selenium Testing Tools Cookbook
Language: en
Pages: 546
Authors: Unmesh Gundecha
Categories: Computers
Type: BOOK - Published: 2012-11-23 - Publisher: Packt Publishing Ltd

DOWNLOAD EBOOK

This is a cookbook packed with code examples and step-by-step instructions to ease your learning curve. This book is intended for software quality assurance/tes