Python Testing Cookbook

Python Testing Cookbook

Python Testing Cookbook  //  Follow the development, writing, and production of this Packt Publishing book targeted at Python developers that want to get every ounce of value out of automated testing.

Oct 27 / 1:35am

PyCukes is awesome for BDD

PyCukes makes it easy to write easy-to-read stories. In recipe32, we explore how to write up a user story as shown below.

When we run this story through PyCukes, it markes up unwired BDD test steps as PENDING.

4668_04_21

Later on in the recipe, we add wiring written in Python that links the story steps with setup code, operations, and assertions. This makes our stories testable, as shown below.

4668_04_24

This makes a great feedback tool to share with our stake holders as we develop systems.