Ian Langworth wrote: > On 12.Mar.2005 11:41PM -0500, Geoffrey Young wrote: > > >>nevertheless, what you are replying to was just a discussion >>about a feature that doesn't exist in the standard Test::More >>toolkit but was brought up because Apache-Test's plan() works >>a bit differently and there are enough people who like it that >>I thought it warranted a discussion here to see if T::M was >>interested. > > > Yeah, I know, I was curious how the reason could fit into the > _proposed_ Test::More additions. I'll do a better job at phrasing > next time. :-)
:) well, I think it would need to be something like skip_message() plus a bunch of helper functions, similar to the way Apache-Test works. that's not to say that optional plan() argument wouldn't work without those special functions, just that the skip message wouldn't. but that said, Apache-Test has a bunch of super useful functions, some of which I mentioned before. A-T also provides a bunch of useful runtime functions, like t_write_file() which creates a file (and directories, if required), writes to it, then removes it (and any created directories) when the test script finishes. what I've wanted to do for a long time is wrap all of these up in something like Test::Util so that the world could use them outside of Apache-Test. if T::M were to incorporate plan() then perhaps Test::Util could be bundled with Test-Simple and include the need* and have* functions. anyway, just a thought. --Geoff