|laziness, impatience, and hubris|
TODO blocks for Test::XML, and in generalby nglenn (Beadle)
|on Sep 04, 2012 at 16:56 UTC||Need Help??|
nglenn has asked for the
wisdom of the Perl Monks concerning the following question:
I'm trying to use Test::XML::XPath, and I need to user Test::More's TODO block. It doesn't seem to work as stated in the Test::More documentation; this doesn't work:
Running prove with the above test placed in 'test.t' gives the following output, failing the suite instead of passing it:
I wanted to try and write/send a patch for the module, but I realized I have no idea what I'm doing :) Looking at the source for Test::More, I do not understand how TODO blocks work. Looking at the source for Test::XML::XPath, I see that it uses Test::Builder and Test::More, but I have no idea how you would have to write the code to make it compliant with Test::More's TODO, TODO_skip, and SKIP blocks. Can anyone explain a) how the block functionality is implemented in Test::More and b) the proper way to write a testing module that preserves this functionality?