Learning Python Testing Front Cover

Learning Python Testing

  • Length: 200 pages
  • Edition: 1
  • Publisher:
  • Publication Date: 2014-11-25
  • ISBN-10: 1783553219
  • ISBN-13: 9781783553211
  • Sales Rank: #6387522 (See Top 100 Books)

A straightforward and easy approach to testing your Python projects

About This Book

  • Develop your knowledge and skills to increase your confidence in tackling new challenges
  • Guides you through the tools of automated testing in Python 3 with practical and real-life examples
  • Shows you step by step how to turn testing from a burden into a benefit

Who This Book Is For

This book is ideal if you want to learn about the testing disciplines and automated testing tools from a hands-on, conversational guide. You should already know Python and be comfortable with Python 3.

In Detail

Automated testing is the best way to increase efficiency and decrease the defects of software testing. It takes away much of the effort on your part so that you can find bugs early and easily. The Python unit testing framework makes it easy to write efficient automated test cases in Python. Applications involving many paradigms and styles can be very complicated to test, but with the right tools, testing becomes the simplest part of the development process.

This book starts with a short introduction to testing, and then introduces the doctest tool, both in terms of practicalities and how it fits into the testing environment. From there, the discussion proceeds to unittest.mock and mock objects, and to unittest. Next, Nose is introduced and discussed. Later on, focus turns from the tools themselves toward best practices and disciplines of testing. Finally, the integration of testing with existing build processes and toolchains is covered. By the end of this book, you will know how to use automated testing quickly and easily and in a way that helps catch bugs early and fix them.

Table of Contents

Chapter 1: Python and Testing
Chapter 2: Working with doctest
Chapter 3: Unit Testing with doctest
Chapter 4: Decoupling Units with unittest.mock
Chapter 5: Structured Testing with unittest
Chapter 6: Running Your Tests with Nose
Chapter 7: Test-driven Development Walk-through
Chapter 8: Integration and System Testing
Chapter 9: Other Tools and Techniques

To access the link, solve the captcha.