Test::BDD::Cucumber::Manual::Architecture - Structural Overview
version 0.39
This short document exists to give you an idea how the different components of this distribution fit together.
The core of a Cucumber-based test suite are the feature files and the step definitions files. By convention, these are saved under /features/ and /features/step_definitions/ respectively.
/features/
/features/step_definitions/
The feature files are encapsulated by the classes in Test::BDD::Cucumber::Model.
Test::BDD::Cucumber::Model
one to one TBCM::Feature<----------------->TBCM::Document | | +-------------------+ | | has many | has a | has many V | V TBCM::Scenario +----->TBCM::Line | ^ ^ +----------------------------+ | | has many | V | TBCM::Step---------------------------+
We build up a Test::BDD::Executor object, in to which we load the step definitions. We then pass this in a Test::BDD::Model::Feature object, along with a Test::BDD::Model::Harness object, which controls interaction with the outside world.
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.