Python Testing Cookbook - Second Edition

Fix everyday testing problems in Python with the help of this solution-based guide

Python Testing Cookbook - Second Edition

Greg L. Turnquist, Bhaskar N. Das
New Release!

Fix everyday testing problems in Python with the help of this solution-based guide
Mapt Subscription
FREE
€29.98/m after trial
eBook
€25.20
RRP €35.98
Save 29%
Print + eBook
€36.99
RRP €36.99
What do I get with a Mapt subscription?
  • Unlimited access to all Packt’s 6,000+ eBooks and Videos
  • 100+ new titles a month, learning paths, assessments & code files
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
€0.00
€25.20
€36.99
€29.99 p/m after trial
RRP €35.98
RRP €36.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Python Testing Cookbook - Second Edition Book Cover
Python Testing Cookbook - Second Edition
€ 35.98
€ 25.20
Git Version Control Cookbook - Second Edition Book Cover
Git Version Control Cookbook - Second Edition
€ 37.18
€ 26.04
Buy 2 for €35.72
Save €31.20
Add to Cart

Book Details

ISBN 139781787122529
Paperback396 pages

Book Description

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.

Table of Contents

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

Authors

Table of Contents

Book Details

ISBN 139781787122529
Paperback396 pages
Read More

Read More Reviews

Recommended for You

Git Version Control Cookbook - Second Edition Book Cover
Git Version Control Cookbook - Second Edition
€ 37.18
€ 26.04
Python Penetration Testing Essentials - Second Edition Book Cover
Python Penetration Testing Essentials - Second Edition
€ 23.98
€ 16.80
Learn Python Programming - Second Edition Book Cover
Learn Python Programming - Second Edition
€ 39.58
€ 27.72
Mastering Angular Components - Second Edition Book Cover
Mastering Angular Components - Second Edition
€ 33.58
€ 23.52
Learning Robotics using Python - Second Edition Book Cover
Learning Robotics using Python - Second Edition
€ 27.58
€ 19.32
Building Machine Learning Systems with Python - Third Edition Book Cover
Building Machine Learning Systems with Python - Third Edition
€ 33.58
€ 23.52