in reply to debug output from TODO with Test::More

If you want to see those tests naturally reflected in the output, use SKIP not TODO.
  • Comment on Re: debug output from TODO with Test::More

Replies are listed 'Best First'.
Re^2: debug output from TODO with Test::More
by haukex (Archbishop) on Jan 13, 2017 at 19:35 UTC

    Hi,

    If you want to see those tests naturally reflected in the output, use SKIP not TODO.

    Did you test before posting? Take 1nickt's code, change the TODO to SKIP, and you'll see that the output of prove doesn't mention the skipped tests at all! Under prove -v, the only difference is that the test will say "ok 1 # skip some reason" instead of "ok 1 - Inside # TODO", so no real difference there either. And as I mention here, SKIP will also not report when the test starts passing.

    Sorry, but this is not a solution to 1nickt's question, "What I want to do is output an additional message when a TODO test starts passing".

    Regards,
    -- Hauke D

      "Sorry, but this is not a solution to 1nickt's question"

      That's right. His question is not valid.