Test::BDD::Cucumber::Definitions - a collection of step definitions for Test Driven Development
Version 0.25
In file features/step_definitions/http_steps.pl:
#!/usr/bin/perl use strict; use warnings; use Test::BDD::Cucumber::Definitions::HTTP::In;
In file features/http.feature:
Feature: HTTP Site test by HTTP Scenario: Loading the page When http request "GET" send "http://metacpan.org" Then http response code eq "200"
... and, finally, in the terminal:
$ pherkin HTTP Site test by HTTP 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
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.