Andy Armstrong wrote: > On 10 Jun 2009, at 16:12, Ovid wrote: >>> I can probably make a release that does within a few days if that's >>> the kind of >>> thing that Gabor needs. >> >> If we can get buy-in from Schwern, what about forking >> https://github.com/schwern/test-more/tree and adding it there? It >> would have to support nested TAP, though. The current implementation >> hard-codes the indent. > > Yeah, that sounds sensible.
Recall that Test::Builder has architectural problems preventing it from truly adopting YAML diagnostics, that being that its not clear when a test ends so diagnostics cannot be built up and them emitted. But I don't think this is as big a road block as I thought it was. It will be handy to have a Test::Builder method which takes a data structure and spits out structured diagnostics and to lace that into Test::More and anyone else who wants to make use of it. Anyhow, I've dragged my feet on this long enough. Fork and go. I think it should always output YAML because it doesn't hurt. YAMLish::Writer will have to be pulled into Test-Simple or spun off into its own distribution. There's the question of whether Test::Builder should emit standard failure diagnostics if the TAP parser understands YAML to avoid duplicating what the harness will emit. It should Just Work with subtests() as long as it uses the Test::Builder printing methods. I seem to recall subtests sticks its indentation code into the print methods. -- The interface should be as clean as newly fallen snow and its behavior as explicit as Japanese eel porn.