Test::BDD::Cucumber::Harness::Data - Builds up an internal data representation of test passes / failures
version 0.18
A Test::BDD::Cucumber::Harness subclass which collates test data
An array-ref in which we store all the features executed, and completed. Until feature_done is called, it won't be in here.
feature_done
The current feature/step/scenario for which we've had the starting method, but not the _done method.
_done
Feature hashref looks like:
{ object => Test::BDD::Cucumber::Model::Feature object scenarios => [] }
Scenario hashref looks like:
{ object => Test::BDD::Cucumber::Model::Scenario object dataset => Data hash the scenario was invoked with steps => [], }
Step hashref looks like:
{ context => Test::BDD::Cucumber::StepContext object result => Test::BDD::Cucumber::Model::Result object (after step_done) }
Accepting one of the data-hashes above, returns a Test::BDD::Cucumber::Model::Result object representing it. If it's a Feature or a Scenario, then it returns one representing all the child objects.
Given a Scenario and a string, searches through the steps for it and returns the data-hash where the Step Object's <-text>> matches the string.
<-
Peter Sergeant pete@clueball.com
pete@clueball.com
Copyright 2011, Peter Sergeant; Licensed under the same terms as Perl
To install Test::BDD::Cucumber, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::BDD::Cucumber
CPAN shell
perl -MCPAN -e shell install Test::BDD::Cucumber
For more information on module installation, please visit the detailed CPAN module installation guide.