Ovid wrote:
Hi all,
For the TAPx::Parser, I need a better way of tracking all tests which
unexpectedly succeed. The simple way is to have the user accumulate them while
the tests are running:
while ( my $result = $parser->results ) {
if ( $result->is_test && $result->has_todo && $result->actual_passed ) {
# test unexpectedly succeeded
}
}
That's ugly. Really ugly. However, it reads clearly (once you know the
methods). It seems better if I can have individual tests report this status:
if ( $result->unexpectedly_succeeded ) { ... }
Unexpectedly succeeding is a consequence of upstream code change. The
thing *you're* interested in is the todo aspect.
todo_done
todo_succeeded
todo_passed
todo_ok
Something along those lines?
David
--
Much of the propaganda that passes for news in our own society is given
to immobilising and pacifying people and diverting them from the idea
that they can confront power. -- John Pilger