in reply to Re^4: debug output from TODO with Test::More
in thread debug output from TODO with Test::More

And there is ZERO value in that.

Sorry, you are quite wrong.

TODO tests are an extremely valuable tool when you are dealing with volatile data. For example: you fetch data by querying an API, and you know it returns bad results under condition X. So you code a workaround for condition X, and you write a TODO test that you expect to fail. When the test begins to pass you get notification because of the TODO, and you remove the workaround for condition X.

This is a common strategy. The fact that you aren't familiar with it is no reason to be dismissive of other people's experience.

From the Test::More docs:


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^6: debug output from TODO with Test::More
by Anonymous Monk on Jan 13, 2017 at 22:02 UTC
    "TODO tests are an extremely valuable tool when you are dealing with volatile data."

    Hence why you mock the service and provide data that is not volatile.

    "If it's something the programmer hasn't done yet, use TODO."

    Nah, SKIP does that much better. But thanks for your opinion. Meanwhile, the real world calls ...

      Your ignorance may feel like bliss, but you are not even half as clever as you think you are. Mocking the service is the exact opposite of what is needed. You mock a service when you want to shield your test from the volatility of the data. I am running tests precisely to observe when the data changes. TODO is the right tool for that job, clueless though you may be about the job and the tool.


      The way forward always starts with a minimal test.