Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

test::bdd::cucumber::stepcontext(3pm) [debian man page]

Test::BDD::Cucumber::StepContext(3pm)			User Contributed Perl Documentation		     Test::BDD::Cucumber::StepContext(3pm)

NAME
Test::BDD::Cucumber::StepContext - Data made available to step definitions VERSION
version 0.11 DESCRIPTION
The coderefs in Step Definitions have a single argument passed to them, a "Test::BDD::Cucumber::StepContext" object. This is an attribute- only class, populated by Test::BDD::Cucumber::Executor. ATTRIBUTES
data Step-specific data. Will either be a text string in the case of a """ string, or an arrayref of hashrefs if the step had an associated table. stash A hash of hashes, containing three keys, "feature", "scenario" and "step". The stash allows you to persist data across features, scenarios, or steps (although the latter is there for completeness, rather than having any useful function). feature scenario step Links to the Test::BDD::Cucumber::Model::Feature, Test::BDD::Cucumber::Model::Scenario, and Test::BDD::Cucumber::Model::Step objects respectively. verb The lower-cased verb a Step Definition was called with. text The text of the step, minus the verb. Placeholders will have already been multiplied out at this point. harness The Test::BDD::Cucumber::Harness harness being used by the executor. matches Any matches caught by the Step Definition's regex. These are also available as $1, $2 etc as appropriate. METHODS
background Boolean for "is this step being run as part of the background section?". Currently implemented by asking the linked Scenario object... AUTHOR
Peter Sergeant "pete@clueball.com" LICENSE
Copyright 2011, Peter Sergeant; Licensed under the same terms as Perl perl v5.14.2 2012-05-20 Test::BDD::Cucumber::StepContext(3pm)

Check Out this Related Man Page

Test::BDD::Cucumber(3pm)				User Contributed Perl Documentation				  Test::BDD::Cucumber(3pm)

NAME
Test::BDD::Cucumber - Feature-complete Cucumber-style testing in Perl VERSION
version 0.11 DESCRIPTION
A sane and complete Cucumber implementation in Perl QUICK LINKS
Cucumber on Perl on MetaCPAN <https://metacpan.org/release/Test-BDD-Cucumber> WARNING
This is beta software, at best. The interface is unlikely to undergo major incompatible changes, but it's certainly possible. Do have a read of the Bugs and Missing section below so you're not surprised when these things don't work. In almost all cases, where the behaviour of this module is different from the real Cucumber, the plan is to move it to be more similar to that. The idea is that the first 1.0 release will be the first production release and before that, you're on your own. There are many things still to add, but I'm using it to do Real Things already. NEXT STEPS
If you are completely new to Cucumber, you'd get a pretty overview from reading our short and crunchy Tutorial. If you already understand Cucumber, and just want to get started then you should read the Step-writing quick-start guide, the documentation for our command-line tool App::pherkin, and How to integrate with Test::Builder. If you want to extend or integrated Test::BDD::Cucumber then you'd probably be more interested in our Architecture overview. TEN SECOND GUIDE TO USING THIS IN YOUR CI ENVIRONMENT
Don't use the command-line tool, App::pherkin. Instead, look at the How to integrate with Test::Builder document. BUGS, MISSING, AND LIMITATIONS The following things do not work in this release, although support is planned in the very near future: o Localization o Step Argument Transforms o Quoting in tables is broken o Placeholders in pystrings is broken o Explicit Step Outline notation doesn't work (although step outlines are explicitly supported) o Unicode support is probably a bit ropey o Pherkin isn't really fit for purpose yet CODE
On Github, of course: https://github.com/sheriff/test-bdd-cucumber-perl <https://github.com/sheriff/test-bdd-cucumber-perl>. AUTHOR
Peter Sergeant "pete@clueball.com" LICENSE
Copyright 2011, Peter Sergeant; Licensed under the same terms as Perl perl v5.14.2 2012-05-20 Test::BDD::Cucumber(3pm)
Man Page