NAME

Test::BDD::Cucumber::Harness - Base class for creating harnesses

VERSION

version 0.02

DESCRIPTION

Harnesses allow your feature files to be executed while telling the outside world about how the testing is going, and what's being tested. This is a base class for creating new harnesses. You can see Test::BDD::Cucumber::Harness::TermColor and Test::BDD::Cucumber::Harness::TestBuilder for examples.

METHODS / EVENTS

feature

feature_done

Called at the start and end of feature execution respectively. Both methods accept a single argument of a Test::BDD::Cucumber::Model::Feature.

scenario

scenario_done

Called at the start and end of scenario execution respectively. Both methods accept a Test::BDD::Cucmber::Model::Scenario module and a dataset hash.

step

step_done

Called at the start and end of step execution respectively. Both methods accept a Test::BDD::Cucmber::StepConcept object. step_done also accepts a hash of data relating to Test::Builder of the structure:

{
    output => SCALAR REF,
    builder => Test::Builder object
};

The output is the output of the step as if it had been run as a test script - useful for providing debugging output when a step has failed. The Test::Builder is a localized instance just for that step.

AUTHOR

Peter Sergeant pete@clueball.com

LICENSE

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