Test::BDD::Cucumber::Definitions - a collection of step definitions for Test Driven Development
Version 0.41
In file features/step_definitions/tbcd_steps.pl:
#!/usr/bin/perl use strict; use warnings; use Test::BDD::Cucumber::Definitions::TBCD::In;
In file features/site.feature:
Feature: Site Site tests Scenario: Loading the page When http request "GET" send "http://metacpan.org" Then http response code eq "200"
... and, finally, in the terminal:
$ pherkin Site Site tests Scenario: Loading the page When http request "GET" send "http://metacpan.org" Then http response code eq "200"
The module exports functions S, C, Given, When and Then. These functions are identical to the same functions from the module Test::BDD::Cucumber.
S
C
Given
When
Then
Additionally, the module exports several functions for parameter validation. These functions are exported by the :validator tag.
:validator
By default, no functions are exported. All functions must be imported explicitly.
Mikhail Ivanov <m.ivanych@gmail.com>
<m.ivanych@gmail.com>
Copyright 2018 Mikhail Ivanov.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Test::BDD::Cucumber::Definitions, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::BDD::Cucumber::Definitions
CPAN shell
perl -MCPAN -e shell install Test::BDD::Cucumber::Definitions
For more information on module installation, please visit the detailed CPAN module installation guide.