Here’s a perl script that may prove useful: tap-to-junit-xml…
tap-to-junit-xml – convert perl-style TAP test output to JUnit-style XML
tap-to-junit-xml "test suite name" [ outputprefix ] < tap_output.log
Parse test suite output in TAP (Test Anything Protocol) format, and produce XML output in a similar format to that produced by the <junit> ant task. This is useful for consumption by continuous-integration systems like Hudson.
Written in perl, requires TAP::Parser and XML::Generator. It's based on junit_xml.pl by Matisse Enzer, although pretty much entirely rewritten.