Test::...Result(3pm)

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

✨ Test::...Result ✨

okay bestie, so this is Test::BDD::Cucumber::Model::Result β€” it's a lil Perl module (a 3pm manpage, iykyk) and it does exactly one iconic thing: it encapsulates a result state. that's it. that's the whole vibe. πŸ’…

and like, we're on version 0.87 bestie, so you're running the good stuff. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

it's an encapsulation of result state β€” whether that's for a step, a scenario, or a feature. one object, one truth, no cap. πŸ’–


🌸 ATTRIBUTES 🌸

result

an enum, babes. the options are exactly: "passing", "failing", "pending" or "undefined".

  • "pending" gets used if there was any TODO output from a test
  • "undefined" is for a test that wasn't run β€” either because there was no matching step, or because a previous step failed 😭

output

the underlying test-output that contributed to a result. literally the receipts. 🧾✨


πŸ’… METHODS πŸ’…

from_children

collates the Result objects you pass in, and returns one that encompasses all of them. it's giving found family energy fr fr. 🫢

and because they may be varied, it runs through them in order of "failing", "undefined", "pending" and "passing" β€” the first it finds is the overall result. and the empty set? it passes. slay. πŸ‘‘


ngl bestie, that order matters β€” "failing" wins over everything, so one bad apple really does spoil the whole batch. πŸ’€

perl v5.40.1 🌈 2025-05-29 β€” mwah, that's the version and date, and the manpage is Test::...Result(3pm). go forth and collate, queen. β­πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from