App::pherkin(3pm)

πŸ“¦
version 0.87 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

App::pherkin β€” bestie, it's literally just "run Cucumber tests from the command line" and honestly? iconic. πŸ‘‘


✨ VERSION ✨

version 0.87 πŸŽ€


🌸 SYNOPSIS 🌸

okay so this is the whole vibe:

pherkin
pherkin some/path/features/

that's it. that's the tea. πŸ«–


πŸ¦‹ DESCRIPTION πŸ¦‹

so pherkin is gonna go snooping around the directory you told it about β€” or if you didn't tell it anything, it'll just default to ./features/ β€” looking for two things, and it wants both:

  • feature files, aka literally any file matching *.feature πŸ“„
  • step definition files, aka any file matching *_steps.pl 🧚

then it loads up all those step definitions and goes ahead and executes the features. no cap. πŸ”₯

and when it runs, the colours are giving a whole traffic light moment, assuming you're on the default output harness:

  • steps that pass get printed in green βœ…
  • steps that fail get printed in red πŸ’€
  • steps that have no step definition at all get printed in yellow, because that's the TODO signal πŸ‘€

πŸ’… METHODS πŸ’…

🌈 run

the App::pherkin class β€” which is, like, the whole engine behind the pherkin command β€” does all its thing through the run() method. πŸƒβ€β™€οΈ

what does it take? currently just:

  • a single path, as a string πŸ›£οΈ
  • or nothing at all, it's flexible like that πŸ™ˆ

and what does it give you back? a Test::BDD::Cucumber::Model::Result object covering all the steps that ran. every single one. periodt. πŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

Peter Sergeant pete@clueball.com 🫢


πŸŽ€ LICENSE πŸŽ€

Copyright 2019-2023, Erik Huelsmann
Copyright 2011-2019, Peter Sergeant; Licensed under the same terms as Perl

okay so that's the whole page, and lemme just say β€” this is from perl v5.40.1, dated 2025-05-29, and it's the App::pherkin(3pm) manual. go run some features bestie, you're gonna slay. πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from