Home | Amazing | Today | Tags | Publishers | Years | Account | Search 
Python Testing: Beginner's Guide

Buy

Automated testing moves much of the labor of testing off the developer and makes it easier as well as quicker to find bugs and fix them. Automated tests run faster, increase test coverage, and lower costs. However, testing is neither an easy process nor remotely exciting for most developers. But with the right techniques and tools, testing can become a simple and gratifying part of the development process.

With this helpful guide - from an expert - in your hand, testing will not be a tiresome topic for you anymore. You will learn how to test your Python projects in the easiest way, making other parts of the development process easier and more enjoyable.

This book covers the tools and techniques of automated testing and test-driven development. Starting from the very basics, the chapters introduce new tools and techniques in simple, accessible language with step-by-step examples. You will explore how to make testing easier and more accurate with Python's doctest module and learn test-driven development using the unittest framework. You will also learn how to keep your units separate from each other and discover a simple and easy way to integrate Mocker and unittest. Next, we cover integration testing and web application testing.

Automated testing gives developers better feedback, faster and more often. Bugs get found sooner and fixed better, with less effort. By the end of this book, you will have all of the skills needed to benefit from automated testing.

What you will learn from this book

  • Make testing easy and convenient with Python's doctest module, which lets you put your tests right into your doc strings
  • Drive development using unit testing and learn how it can make the process quicker
  • Explore the assorted features Mocker provides to help you keep units separate from each other and customize it to suit your needs
  • Embed your tests in a controlled and temporary environment using test fixtures
  • Simplify the integration of unittest and Mocker using Python Mocker's MockerTestCase
  • Automatically find and execute tests using Nose - a unittest-based testing framework for Python that makes writing and running tests easier
  • Write tests for web applications using Twill and integrate it's capabilities as a library into Python testing code
  • Create integration tests and run them to see if your programs work correctly in concert with each other
  • Run Nose automatically when your version control software detects changes in the source code
  • Set up the Buildbot automated continuous integration system to run your tests repeatedly over many different environments

 

Approach

The book begins with the very foundations of automated testing, and expands on them until the best-practice tools and techniques are fully covered. New concepts are illustrated with step-by-step hands-on exercises. Testing will be easier and more enjoyable with this beginner's guide.

Who this book is written for

If you are a Python developer and want to write tests for your applications, this book will get you started and show you the easiest way to learn testing.

You need to have sound Python programming knowledge to follow along. An awareness of software testing would be good, but no formal knowledge of testing is expected nor do you need to have any knowledge of the libraries discussed in the book.

(HTML tags aren't allowed.)

The Journey from Manager to Leader
The Journey from Manager to Leader

The Journey from Manager to Leader: A Playbook for Success approaches successful leadership from a unique angle: storytelling and sports metaphors. Author William Jones illustrates insightful new pathways to winning in the business world. This book hits a home run for managers, attacking real world scenarios with practical advice from...

Object Oriented Programming in VB.Net
Object Oriented Programming in VB.Net
This book takes an object-oriented approach to introduce Visual Basic .NET. The author begins by covering object-oriented analysis, design, and modeling using UML. He then moves into a detailed discussion of objects and clasess, after which, readers begin develoing their own short programs. Advanced topics such as data structures, components,...
Fundamentals of Digital Logic with Verilog Design (Mcgraw-Hill Series in Electrical and Computer Engineering)
Fundamentals of Digital Logic with Verilog Design (Mcgraw-Hill Series in Electrical and Computer Engineering)

Intended for an introductory course in digital logic design. The authors provide a balance between classical and modern design approaches. Basic concepts are introduced using simple log circuits, which are designed by using both manual techniques and modern CAD-tool-based methods.

...

R for Business Analytics
R for Business Analytics

R for Business Analytics looks at some of the most common tasks performed by business analysts and helps the user navigate the wealth of information in R and its 4000 packages.  With this information the reader can select the packages that can help process the analytical tasks with minimum effort and maximum usefulness. The use of...

PHR / SPHR: Professional in Human Resources Certification Study Guide
PHR / SPHR: Professional in Human Resources Certification Study Guide

Updated edition of best-selling guide for PHR and SPHR candidates

The demand for qualified human resources professionals is on the rise. The new Professional in Human Resources (PHR) and Senior Professional in Human Resources (SPHR) exams from the Human Resources Certification Institute (HRCI) reflect the evolving industry...

Enterprise Development with Visual Studio .NET, UML, and MSF
Enterprise Development with Visual Studio .NET, UML, and MSF

Using Visual Studio .NET (VS .NET) for creating enterprise solutions, authors John Hansen and Carsten Thomsen have chosen to add the Unified Modeling Language (UML), for designing and documenting solutions, and the Microsoft Solutions Framework (MSF), for planning and managing projects.

Experienced developers, team leaders, and...

©2021 LearnIT (support@pdfchm.net) - Privacy Policy