App::Prove::State::Result::Test(3p) Perl Programmers Reference Guide

App::Prove::State::Result::Test(3p) Perl Programmers Reference Guide #

App::Prove::State::Result::Test(3p) Perl Programmers Reference Guide

NNAAMMEE #

 App::Prove::State::Result::Test - Individual test results.

VVEERRSSIIOONN #

 Version 3.44

DDEESSCCRRIIPPTTIIOONN #

 The "prove" command supports a "--state" option that instructs it to
 store persistent state across runs. This module encapsulates the results
 for a single test.

SSYYNNOOPPSSIISS #

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

MMEETTHHOODDSS #

CCllaassss MMeetthhooddss _"_n_e_w_"

IInnssttaannccee MMeetthhooddss _"_n_a_m_e_"

 The name of the test.  Usually a filename.

 _"_e_l_a_p_s_e_d_"

 The total elapsed times the test took to run, in seconds from the epoch..

 _"_g_e_n_e_r_a_t_i_o_n_"

 The number for the "generation" of the test run.  The first generation is
 1 (one) and subsequent generations are 2, 3, etc.

 _"_l_a_s_t___p_a_s_s___t_i_m_e_"

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

 Returns "undef" if the program has never passed.

 _"_l_a_s_t___f_a_i_l___t_i_m_e_"

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

 Returns "undef" if the program has never failed.

 _"_m_t_i_m_e_"

 Returns the mtime of the test, in seconds from the epoch.

 _"_r_a_w_"

 Returns a hashref of raw test data, suitable for serialization by YAML.

 _"_r_e_s_u_l_t_"

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

 _"_r_u_n___t_i_m_e_"

 The total time it took for the test to run, in seconds.  If "Time::HiRes"
 is available, it will have finer granularity.

 _"_n_u_m___t_o_d_o_"

 The number of tests with TODO directives.

 _"_s_e_q_u_e_n_c_e_"

 The order in which this test was run for the given test suite result.

 _"_t_o_t_a_l___p_a_s_s_e_s_"

 The number of times the test has passed.

 _"_t_o_t_a_l___f_a_i_l_u_r_e_s_"

 The number of times the test has failed.

 _"_p_a_r_s_e_r_"

 The underlying parser object.  This is useful if you need the full
 information for the test program.

perl v5.36.3 2023-02-15 App::Prove::State::Result::Test(3p)