APP::PROVE::STATE::RESULT::TEST(3perl)

✨ NAME ✨

App::Prove::State::Result::Test β€” the individual test results, bestie πŸ’– one test, one lil record, that's the whole vibe.


πŸ’« VERSION πŸ’«

Version 3.52 πŸŽ€


πŸ“– DESCRIPTION πŸ“–

okay so πŸ’… the prove command has this --state option, right? and what it does is tell prove to store persistent state across runs β€” like, it remembers stuff between times you run it. iconic behavior fr fr.

This module right here is the lil package that wraps up the results for a single test. that's it, that's the job. she's small but she's important πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

# Re-run failed tests
$ prove --state=failed,save -rbv

look at her go πŸƒβ™€οΈπŸ’¨


πŸ”₯ METHODS πŸ”₯

Class Methods

new

(the page keeps it mysterious, no further deets bestie 🫣)

Instance Methods

name

the name of the test. usually a filename. very "who am I, really" of her 🌸

elapsed

the total elapsed time(s) the test took to run, counted in seconds from the epoch.. (yes with the lil double dot, we love a dramatic pause 😭)

generation

the number for the "generation" of the test run. first generation is 1 (one, the OG πŸ‘‘) and then the subsequent generations go 2, 3, etc. it's giving family tree 🌳

last_pass_time

the last time the test program passed, in seconds from the epoch.

returns undef if the program has never passed πŸ™ˆ

last_fail_time

the last time the test suite failed, in seconds from the epoch.

returns undef if the program has never failed ✨

mtime

returns the mtime of the test, in seconds from the epoch. classic πŸ•°οΈ

raw

returns a hashref of raw test data, suitable for serialization by YAML. no notes ✍️

result

currently, whether or not the test suite passed with no 'problems' (such as TODO passed).

run_time

the total time it took for the test to run, in seconds. and if Time::HiRes is available, it'll have finer granularity β€” precision queen πŸ’…

num_todo

the number of tests with TODO directives. we'll get to it bestie 😌

sequence

the order in which this test was run for the given test suite result. line order, no cutting πŸ”’

total_passes

the number of times the test has passed. we love a W πŸ†

total_failures

the number of times the test has failed. it's giving character development πŸ’€

parser

the underlying parser object. super useful if you need the full information for the test program β€” the whole lore, the deep cuts, everything 🧚


okay periodt that's the whole page bestie 🫢 this was written up under perl v5.44.0, dated 2026-10-17, and it says App::Prove::State::Result::Test(3perl) right there at the bottom, slay πŸ’–βœ¨πŸŒˆ

πŸ“¦ where this page comes from
  • arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND 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