Python Testing Cookbook

Making your life easier with automated testing of Python is the sole aim of this book. Because it’s a cookbook, you can take things at your own pace, in your own order, and learn practical application rather than nebulous theory.

Python Testing Cookbook

Greg L. Turnquist

Making your life easier with automated testing of Python is the sole aim of this book. Because it’s a cookbook, you can take things at your own pace, in your own order, and learn practical application rather than nebulous theory.
Mapt Subscription
FREE
$30.00/m after trial
eBook
$18.90
RRP $26.99
Save 29%
Print + eBook
$44.99
RRP $44.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 subscription 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 subscription 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 subscription reader
$0.00
$18.90
$44.99
$29.99 p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Python Testing Cookbook Book Cover
Python Testing Cookbook
$ 26.99
$ 18.90
MATLAB Graphics and Data Visualization Cookbook Book Cover
MATLAB Graphics and Data Visualization Cookbook
$ 29.99
$ 21.00
Buy 2 for $35.00
Save $21.98
Add to Cart

Book Details

ISBN 139781849514668
Paperback364 pages

Book Description

Are you looking at new ways to write better, more efficient tests? Are you struggling to add automated testing to your existing system? The Python unit testing framework, originally referred to as "PyUnit" and now known as unittest, is a framework that makes it easier for you to write automated test suites efficiently in Python. This book will show you exactly how to squeeze every ounce of value out of automated testing.

The Python Testing Cookbook will empower you to write tests using lots of Python test tools, code samples, screenshots, and detailed explanations. By learning how and when to write tests at every level, you can vastly improve the quality of your code and your personal skill set. Packed with lots of test examples, this will become your go-to book for writing good tests.

This practical cookbook covers lots of test styles including unit-level, test discovery, doctest, BDD, acceptance, smoke, and load testing. It will guide you to use popular Python tools effectively and discover how to write custom extensions. You will learn how to use popular continuous integration systems like Jenkins (formerly known as Hudson) and TeamCity to automatically test your code upon check in. This book explores Python's built-in ability to run code found embedded in doc strings and also plugging in to popular web testing tools like Selenium. By the end of this book, you will be proficient in many test tactics and be ready to apply them to new applications as well as legacy ones.

 

Table of Contents

What You Will Learn

  • Get started with the basics of writing automated unit tests and asserting results
  • Use Nose to discover tests and build suites automatically
  • Write Nose plugins that control what tests are discovered and how to produce test reports
  • Add testable documentation to your code
  • Filter out test noise, customize test reports, and tweak doctest's to meet your needs
  • Write testable stories using lots of tools including doctest, mocks, Lettuce, and Should DSL
  • Get started with the basics of customer-oriented acceptance testing
  • Test the web security of your application
  • Configure Jenkins and TeamCity to run your test suite upon check-in
  • Capture test coverage reports in lots of formats, and integrate with Jenkins and Nose
  • Take the pulse of your system with a quick smoke test and overload your system to find its breaking points
  • Add automated testing to an existing legacy system that isn't test oriented

 

Authors

Table of Contents

Book Details

ISBN 139781849514668
Paperback364 pages
Read More

Read More Reviews

Recommended for You

MATLAB Graphics and Data Visualization Cookbook Book Cover
MATLAB Graphics and Data Visualization Cookbook
$ 29.99
$ 21.00
Raspberry Pi Networking Cookbook Book Cover
Raspberry Pi Networking Cookbook
$ 20.99
$ 14.70
TeamCity 7 Continuous Integration Essentials Book Cover
TeamCity 7 Continuous Integration Essentials
$ 14.99
$ 10.50
Raspberry Pi Networking Cookbook Book Cover
Raspberry Pi Networking Cookbook
$ 20.99
$ 14.70
Programming ArcGIS 10.1 with Python Cookbook Book Cover
Programming ArcGIS 10.1 with Python Cookbook
$ 26.99
$ 18.90
PySide GUI Application Development Book Cover
PySide GUI Application Development
$ 20.99
$ 14.70