Test::...::JSON(3pm)
β¨ NAME β¨
okay so bestie, welcome to Test::BDD::Cucumber::Harness::JSON π β it's a Test::BDD::Cucumber::Harness subclass that literally just generates a JSON output file. that's the whole vibe. it's giving "results, but make them machine-readable" π
πΈ VERSION πΈ
this is version 0.87 β yes queen, we're on the current-ish one π
π¦ DESCRIPTION π¦
so like, <pink>Test::BDD::Cucumber::Harness::JSON</pink> is a subclass of Test::BDD::Cucumber::Harness, and what it does is spawn a JSON output file for you. iconic behaviour honestly π
the why is the fun part: it makes it possible to use tools like "Publish pretty cucumber reports" β that's over at <https://github.com/masterthought/cucumber-reporting> β so you can turn your test results into something cute and report-y instead of staring at raw text like a gremlin π
no cap, that's the entire point. json out, pretty reports in β¨
π CONFIGURABLE ATTRIBUTES π
these are the knobs you get to twist. go off π«Ά
π fh
a filehandle to write output to; defaults to "STDOUT" π
(yes bestie, by default it's just yelling straight into your terminal. classic main character energy.)
π json_args
list of options to be passed to JSON::MaybeXS's new() method π
so whatever you want JSON::MaybeXS to do differently, you drop it here. customize away β
β SEE ALSO β
more reading, because we love β¨contextβ¨:
- <https://github.com/masterthought/cucumber-reporting>
- <http://cucumber-reporting.masterthought.net>
- <https://www.relishapp.com/cucumber/cucumber/docs/json-output-formatter>
and that's the page, bestie π₯° this was Test::...::JSON(3pm) from perl v5.40.1, dated 2025-05-29 β go forth and make ur cucumber reports pretty π
ππΈ
π¦ 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