Preface

Testing has always been a part of software development. For decades, comprehensive testing was defined by complex manual test procedures backed by big budgets; but something revolutionary happened in 1998. In his Guide to Better Smalltalk, Smalltalk guru Kent Beck introduced an automated test framework called SUnit. This triggered an avalanche of test frameworks including JUnit, PyUnit, and many others for different languages and various platforms, dubbed the xUnit movement. Automated testing was made a cornerstone of the agile movement when 17 top software experts signed the Agile Manifesto in 2001.

Testing includes many different styles including unit testing, integration testing, acceptance testing, smoke testing, load testing, and countless others. This book digs in and explores testing at all the important levels while using the nimble power of Python. It also shows many tools.

This book is meant to expand your knowledge of testing from something you either heard about or have practiced a little into something you can apply at any level to meet your needs in improving software quality. I hope to give you the tools to reap huge rewards in better software development and customer satisfaction.

What this book covers

Chapter 1, Using Unittest to Develop Basic Tests, gives you a quick introduction to the most commonly used test framework in the Python community.

Chapter 2, Running Automated Tests with Nose, introduces the most ubiquitous Python test tool and gets busy by showing how to write specialized plugins.

Chapter 3, Creating Testable Documentation with doctest, shows many different ways to use Python's docstrings to build runnable doctests as well as writing custom test runners.

Chapter 4, Testing Customer Stories with Behavior Driven Development, dives into writing easy-to-read testable customer stories using doctest, mocking, and Lettuce/Should DSL.

Chapter 5, High Level Customer Scenarios with Acceptance Testing, helps you get into the mindset of the customer and write tests from their perspective using Pyccuracy and the Robot Framework.

Chapter 6, Integrating Automated Tests with Continuous Integration, shows how to add continuous integration to your development process with Jenkins and TeamCity.

Chapter 7, Measuring your Success with Test Coverage, explores how to create coverage reports and interpret them correctly. It also digs in to see how to tie them in with your continuous integration system.

Chapter 8, Smoke/Load TestingTesting Major Parts, shows how to create smoke test suites to get a pulse from the system. It also shows how to put the system under load to make sure it can handle the current load as well as finding the next breaking point for future loads.

Chapter 9, Good Test Habits for New and Legacy Systems, shows many different lessons learned from the author about what works when it comes to software testing.

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

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