Preface

In this book, you'll learn about the major tools, techniques, and skills of automated testing in the Python 3 language. You'll learn about the tools that are included in Python's standard library, such as doctest, unittest, and unittest.mock. You'll also learn about useful nonstandard tools such as Nose and coverage.py. As we're talking about these tools, we'll also be discussing the philosophy and best practices of testing, so when you're done you'll be ready to use what you've learned in real-world projects.

This book is a successor to an earlier book, Python Testing: Beginner's Guide, Daniel Arbuckle, Packt Publishing which only covered Python up to version 2.6. Python 3 and its related tools are just slightly too different to justify calling this book a second edition. If you've read the earlier book and parts of this book seem familiar to you, it's because the two books are in fact similar.

What this book covers

Chapter 1, Python and Testing, provides an introduction to formalized and automated testing in Python.

Chapter 2, Working with doctest, teaches you to use doctest, a tool that integrates testing and documentation.

Chapter 3, Unit Testing with doctest, helps you understand how to apply doctest to the discipline of unit testing.

Chapter 4, Decoupling Units with unittest.mock, teaches you to create and use mock objects.

Chapter 5, Structured Testing with unittest, helps you to build more structured test suites with unittest.

Chapter 6, Running Your Tests with Nose, helps you run your doctests, unittests, and more with one command.

Chapter 7, Test-driven Development Walk-through, takes you step by step through the test-driven development process.

Chapter 8, Integration and System Testing, teaches you how to test the interactions between units of code.

Chapter 9, Other Tools and Techniques, helps you learn about continuous integration, version control hooks, and other useful things that are related to testing.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.146.155