NAME

Test::BDD::Cucumber::Executor - Run through Feature and Harness objects

VERSION

version 0.01

DESCRIPTION

The Executor runs through Features, matching up the Step Lines with Step Definitions, and reporting on progress through the passed-in harness.

METHODS

steps

add_steps

The attributes steps is a hashref of arrayrefs, storing steps by their Verb. add_steps() takes step definitions of the item list form:

(
 [ Given => qr//, sub {} ],
),

and populates steps with them.

execute

Execute accepts a feature and a harness object, and creates Test::BDD::Cucumber::StepContext for each step in each scenario, passing them on to dispatch()

add_placeholders

Accepts a text string and a hashref, and replaces <placeholders > with the values in the hashref, returning a string.

dispatch

Accepts a Test::BDD::Cucumber::StepContext object, and searches through the steps that have been added to the executor object, executing against the first matching one.

AUTHOR

Peter Sergeant pete@clueball.com

LICENSE

Copyright 2011, Peter Sergeant; Licensed under the same terms as Perl