Hi,
PHPUnit supports agile documentation in testdox format, but it isn't currently possible to call this from Phing. I've been hacking on a local copy of Phing and have managed to add a testdox formatter as a listener, which writes to a file. I haven't done any work on the build.xml side of things - I just have it turned on by default because that's all I need.
Is this something that would be beneficial, and suitable for inclusion in a future release? If it is, I can polish it up and add config support. I was thinking maybe an attribute of the phpunit task?
The change involves adding a listener that writes to the php://temp stream, before finally writing it to the output file. This method seems to be the only way because of how the TestDox code is implemented, without a "do not write option". I also had to subclass the PHPUnit Report Printer as its flush method closes the stream by default, before the phing listener has a chance to write it. Finally, I added testdox as a new type of FormatterElement.
I tried to follow Phing's coding and naming style, but that can obviously change if necessary.
I should mention that it's only tested and working with PHPUnit 2 so far. It also only currently supports the text version, not html.
I'll attach what I have so far so you can see what I'm talking about. No patches just yet as I've just hacked on the current release version.
Let me know what you think,
Cheers,
Jamie.