Test::...::Data(3pm)
π NAME π
Test::BDD::Cucumber::Harness::Data β she builds up an internal data representation of test passes / failures. Bestie, she's the one keeping receipts on every single test run. π
It's a User Contributed Perl Documentation page, section 3pm, and yes we're getting into it. π
β¨ VERSION β¨
version 0.87 β that's the one, no cap. π¦
πΈ DESCRIPTION πΈ
It's a Test::BDD::Cucumber::Harness subclass, and her whole job is collating test data. She's the friend who remembers everything so you don't have to. π
π ATTRIBUTES π
π features
An array-ref where we store all the features that got executed, and completed. But listen β until feature_done is called, it will not be in here. She doesn't claim you until you're actually done, iconic behaviour honestly. β¨
π¦ current_feature / current_scenario / current_step
Three separate ones, all vibing together: current_feature, current_scenario, and current_step.
These are the current feature/step/scenario where we've had the starting method, but not the _done method yet. It's giving "situationship" β started, not finished. π
π feature / feature_done
The Feature hashref looks like this:
{
object => Test::BDD::Cucumber::Model::Feature object
scenarios => []
}
π scenario / scenario_done
The Scenario hashref looks like this:
{
object => Test::BDD::Cucumber::Model::Scenario object
dataset => Data hash the scenario was invoked with
steps => [],
}
π step / step_done
The Step hashref looks like this:
{
context => Test::BDD::Cucumber::StepContext object
result => Test::BDD::Cucumber::Model::Result object (after step_done)
}
β feature_status / scenario_status / step_status
These three take one of the data-hashes from above and hand you back a Test::BDD::Cucumber::Model::Result object representing it. β¨ And here's the cute part: if it's a Feature or a Scenario, then it returns one representing all the child objects. She's a package deal, she represents the whole fam. π«Ά
π§ find_scenario_step_by_name
Give her a Scenario and a string, and she searches through the steps for it, returning the data-hash where the Step Object's "<-"text>> matches the string. (Yes, that's literally the thing in the docs, we do not edit the queen's text. π
)
πΈ AUTHOR πΈ
Peter Sergeant "pete@clueball.com" β ty for your service, king. π
π LICENSE π
Copyright 2019-2023, Erik Huelsmann
Copyright 2011-2019, Peter Sergeant; Licensed under the same terms as Perl
Okurrr that's the whole page, bestie. Every flag, every hashref, every copyright line β all accounted for. Slay. π β¨
Sign-off szn: this gorgeous page was served up by perl v5.40.1, dated 2025-05-29, and it lives under the name Test::...::Data(3pm). Mwah. ππ¦π
π¦ 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