More App::Prove::State Questions
Andy Armstrong
andy at hexten.net
Sun Aug 24 11:16:37 UTC 2008
On 24 Aug 2008, at 07:10, Ovid wrote:
> --- On Sun, 24/8/08, Andy Armstrong <andy at hexten.net> wrote:
>
>> From: Andy Armstrong <andy at hexten.net>
>
>> I'm cool with that - although order can be recovered
>> using the seq field I think.
>
> Isn't the seq field the order of test *suite* runs, not individual
> test programs?
gen is the last generation of the last run in which a particular test
program was executed.
seq is the order in which each test program is run within the suite.
So the 'query' to run the same tests as last time in the same order (--
state=last) is
last => sub {
$self->_select(
where => sub { $_->{gen} >= $last_gen },
order => sub { $_->{seq} }
);
},
--
Andy Armstrong, Hexten
More information about the tapx-dev
mailing list