Test::...ucumber(3pm)
π Test::...ucumber β the manual page, bestie edition π
okay so real quick, the actual page title is Test::...ucumber(3pm) and it lives in the User Contributed Perl Documentation section. That's the header, we're not copying it line-for-line, we're folding it in like a cute little name tag. periodt. β¨
πΈ NAME πΈ
Test::BDD::Cucumber β Feature-complete Cucumber-style testing in Perl. no cap, the whole vibe is "write your tests in plain English-ish sentences and let Perl do the heavy lifting". iconic. π₯
β VERSION β
version 0.87 π
π SYNOPSIS π
okay bestie here's the whole rundown, every single line, verbatim, don't touch anything:
# Driving tests using the 'pherkin' binary that comes with the distribution
$ pherkin -l -b t/
# Or choose a subset of tests to be run by selecting all scenarios tagged 'slow'
$ pherkin -l -b --tags @slow t/
# Or all those /not/ tagged 'slow'
$ 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 'prove' integration
$ prove --source Feature --ext=.feature examples/
# Driving parallel tests using 'prove'
$ prove -r --source Feature -j 9 --ext=.feature t/
look at all those options slaying. π₯
β¨ DESCRIPTION β¨
It's Cucumber for Perl, and it's all integrated with Test2, Test::More and prove. the friend group is solid. π«Ά
The implementation supports the following Gherkin keywords in feature files: Feature, Scenario, Scenario Outline, Examples, Given, When, Then, And and But. π«
Additionally, Scenario can be used as a synonym for Scenario Outline (with Examples). That maps best to Gherkin version 6.0.13 <https://github.com/cucumber/cucumber/blob/master/gherkin/CHANGELOG.md#6013---2018-09-25> β but heads up, it does not support that version's new Rule and Example keywords. not me being the one to break the news π
This implementation supports the same languages as Gherkin 15.0.0 β that is, it supports exactly the same translated keywords. multilingual queen behavior π
Behaviour of this module is similar to that of the real Cucumber, but sometimes different β and the plan is to move to using the same parser and behaviour. iykyk. π
π¦ GETTING STARTED π¦
This module comes with a few introductory tutorials, and they're genuinely cute:
- A Cucumber feature writing tutorial β for those new to Cucumber and BDD testing π
- A Step writing tutorial β to get you started writing the code run for each
Given,Then,Whenstep βοΈ - A guide on integrating with your test suite π§©
- An architecture overview β for those who want to extend or hook into feature file execution ποΈ
- Documentation of the command-line tool
App::pherkinπ
π BUGS AND LIMITATIONS π
For current bugs, check the issue tracker at GitHub: <https://github.com/pherkin/test-bdd-cucumber-perl/issues> π
One thing needs specific mentioning (their words, and honestly it's important):
- Due to the use of its own parser, differences probably exist in the interpretation of feature files when comparing to Cucumber.
Also see the issue <https://github.com/pherkin/test-bdd-cucumber-perl/issues/73> for tracking this topic. π
lowkey the "we have our own parser" thing is the whole plot twist. just so you know fr fr.
π PROJECT RESOURCES π
- Source code repository at <https://github.com/pherkin/test-bdd-cucumber-perl> π§
- Bug tracker at <https://github.com/pherkin/test-bdd-cucumber-perl/issues> π
- Mailing list at <mailto:perl-pherkin@googlegroups.com> π¬
- Chat (Gitter) at <https://gitter.im/pjlsergeant/test-bdd-cucumber-perl> π¬
- Chat (IRC) at <irc://irc.freenode.net/#perl> π¬
- Website at <https://pherkin.pm> π
π SEE ALSO π
Gherkinβ A Gherkin parser and compiler π₯β¨
π AUTHORS π
- Peter Sergeant
pete@clueball.com - Erik Huelsmann
ehuels@gmail.com - Ben Rodgers
ben@bdr.org
three icons, one module. main character energy from all of them π«Άπ
π LICENSE π
Copyright 2019-2023, Erik Huelsmann
Copyright 2011-2019, Peter Sergeant; Licensed under the same terms as Perl
and that's the whole page bestie!! π this one's from perl v5.40.1, dated 2025-05-29, and the manual page is Test::...ucumber(3pm). go write some features, you're gonna eat π
β¨π¦
π¦ where this page comes from
- debian trixie: libtest-bdd-cucumber-perl 0.87-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtest-bdd-cucumber-perl 0.87-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtest-bdd-cucumber-perl 0.87-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms