[tapx-dev] RT Bug for TODO/SKIP
Ovid
publiustemp-tapx at yahoo.com
Sun Jul 29 17:03:23 BST 2007
Two bugs reported in RT. One of them, reported by Eric, is that
020-regression reports two test issues:
All 73 subtests passed
(less 1 skipped subtest: 72 okay)
(1 TODO test unexpectedly succeeded)
That's because of the following (I only ran the tests for the errant
file):
ok 8 - escape_hash 2 We should have a result for Not a \\ # TODO
...
ok 21 - escape_hash 3 We should have a result for Not a \\ # SKIP
Note that there is a space between the escaped backslash and the hash
mark!
But when we run it through prove:
ok 8 - escape_hash 2 We should have a result for Not a \\# TODO
...
ok 21 - escape_hash 3 We should have a result for Not a \\# SKIP
That space is not there.
Here's the $result object for that test:
$result = bless( {
'description' => 'Not a \\# TODO',
'directive' => '',
'explanation' => '',
'ok' => 'ok',
'raw' => 'ok 1 Not a \\# TODO',
'test_num' => '1',
'type' => 'test'
}, 'TAP::Parser::Result::Test' );
Doing this makes it work:
$desc =~ s/#/{desc}/;
I've got to stop working on this today and don't have time to debug
further. Sorry 'bout that.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http://use.perl.org/~Ovid/journal/
More information about the tapx-dev
mailing list