.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Test::BDD::Cucumber 3pm" .TH Test::BDD::Cucumber 3pm "2023-08-29" "perl v5.36.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Test::BDD::Cucumber \- Feature\-complete Cucumber\-style testing in Perl .SH "VERSION" .IX Header "VERSION" version 0.86 .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 2 \& # Driving tests using the \*(Aqpherkin\*(Aq binary that comes with the distribution \& $ pherkin \-l \-b t/ \& \& # Or choose a subset of tests to be run by selecting all scenarios tagged \*(Aqslow\*(Aq \& $ pherkin \-l \-b \-\-tags @slow t/ \& \& # Or all those /not/ tagged \*(Aqslow\*(Aq \& $ pherkin \-l \-b \-\-tags ~@slow \& \& # Fail on missing steps (by default prints as orange output and succeeds tests) \& $ pherkin \-l \-b \-\-strict t/ \& \& \& # Driving tests using \*(Aqprove\*(Aq integration \& $ prove \-\-source Feature \-\-ext=.feature examples/ \& \& # Driving parallel tests using \*(Aqprove\*(Aq \& $ prove \-r \-\-source Feature \-j 9 \-\-ext=.feature t/ .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" Cucumber for Perl, integrated with Test2, Test::More and prove. .PP The implementation supports the following Gherkin keywords in feature files: \&\f(CW\*(C`Feature\*(C'\fR, \f(CW\*(C`Scenario\*(C'\fR, \f(CW\*(C`Scenario Outline\*(C'\fR, \f(CW\*(C`Examples\*(C'\fR, \f(CW\*(C`Given\*(C'\fR, \f(CW\*(C`When\*(C'\fR, \&\f(CW\*(C`Then\*(C'\fR, \f(CW\*(C`And\*(C'\fR and \f(CW\*(C`But\*(C'\fR. Additionally, \f(CW\*(C`Scenario\*(C'\fR can be used as a synonym for \f(CW\*(C`Scenario Outline\*(C'\fR (with \f(CW\*(C`Examples\*(C'\fR). This best maps to Gherkin version 6.0.13 , but without support for its new \f(CW\*(C`Rule\*(C'\fR and \f(CW\*(C`Example\*(C'\fR keywords. .PP This implementation supports the same languages as Gherkin 15.0.0 \- that is, it supports exactly the same translated keywords. .PP Behaviour of this module is similar to that, but sometimes different from the \fIreal\fR Cucumber, the plan is to move use the same parser and behaviour. .SH "GETTING STARTED" .IX Header "GETTING STARTED" This module comes with a few introductory tutorials. .IP "\(bu" 4 A Cucumber feature writing tutorial .Sp for those new to Cucumber and \s-1BDD\s0 testing .IP "\(bu" 4 A Step writing tutorial .Sp to get you started writing the code run for each \f(CW\*(C`Given\*(C'\fR, \f(CW\*(C`Then\*(C'\fR, \f(CW\*(C`When\*(C'\fR step .IP "\(bu" 4 A guide on integrating with your test suite .IP "\(bu" 4 An architecture overview .Sp for those who want to extend or hook into feature file execution .IP "\(bu" 4 Documentation of the command-line tool App::pherkin .SH "BUGS AND LIMITATIONS" .IX Header "BUGS AND LIMITATIONS" For current bugs, check the issue tracer at GitHub: .PP One thing need specific mentioning: .IP "\(bu" 4 Due to the use of its own parser, differences probably exist in the interpretation of feature files when comparing to Cucumber. .Sp Also see the issue for tracking this topic. .SH "PROJECT RESOURCES" .IX Header "PROJECT RESOURCES" .IP "\(bu" 4 Source code repository at .IP "\(bu" 4 Bug tracker at .IP "\(bu" 4 Mailing list at .IP "\(bu" 4 Chat (Gitter) at .IP "\(bu" 4 Chat (\s-1IRC\s0) at .IP "\(bu" 4 Website at .SH "SEE ALSO" .IX Header "SEE ALSO" Gherkin \- A Gherkin parser and compiler .SH "AUTHORS" .IX Header "AUTHORS" Peter Sergeant \f(CW\*(C`pete@clueball.com\*(C'\fR .PP Erik Huelsmann \f(CW\*(C`ehuels@gmail.com\*(C'\fR .PP Ben Rodgers \f(CW\*(C`ben@bdr.org\*(C'\fR .SH "LICENSE" .IX Header "LICENSE" .Vb 2 \& Copyright 2019\-2023, Erik Huelsmann \& Copyright 2011\-2019, Peter Sergeant; Licensed under the same terms as Perl .Ve