NAME
Test::BDD::Cucumber::Definitions - a collection of step definitions for Test Driven Development
VERSION
Version 0.41
SYNOPSIS
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"
EXPORT
The module exports functions S
, C
, Given
, When
and Then
. These functions are identical to the same functions from the module Test::BDD::Cucumber.
Additionally, the module exports several functions for parameter validation. These functions are exported by the :validator
tag.
By default, no functions are exported. All functions must be imported explicitly.
AUTHOR
Mikhail Ivanov <m.ivanych@gmail.com>
LICENSE AND COPYRIGHT
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.