App::pherkin - Run Cucumber tests from the command line
version 0.31
pherkin pherkin some/path/features/
pherkin will search the directory specified (or ./features/) for feature files (any file matching *.feature) and step definition files (any file matching *_steps.pl), loading the step definitions and then executing the features.
pherkin
./features/
*.feature
*_steps.pl
Steps that pass will be printed in green, those that fail in red, and those for which there is no step definition as yellow (for TODO), assuming you're using the default output harness.
The App::pherkin class, which is what the pherkin command uses, makes use of the run() method, which accepts currently a single path as a string, or nothing.
App::pherkin
run()
Returns a Test::BDD::Cucumber::Model::Result object for all steps run.
Peter Sergeant pete@clueball.com
pete@clueball.com
Copyright 2011-2014, 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.