Test::...::JSON(3pm)

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

✨ 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✨:


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