somewhere in the build.xml your junit definition should contain the testcase name <batchtest fork="yes" todir="${reports.tests}"> <fileset dir="${src.tests}"> <include name="**/*Test*.java"/> <exclude name="**/AllTests.java"/> </fileset> </batchtest> in your case you have fu<sp>!^@&<sp>bar as a name which doesnt appear to be valid character data i would correct this in your generated .xml or possibly change the actual filenames used in include name="*Test*.java" to valid character data e.g.
change 1 - goo...@gmail.com maps to gmail2 provider TO gmail_provider http://ant.apache.org/manual/OptionalTasks/junit.html hth Martin Gainty ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: ten...@tripit.com Date: Sun, 26 Jul 2009 14:26:47 -0700 Subject: tap2junit query To: c...@howlingfrog.com Hi Graham, I'm using your excellent tap2junit tool to try and convert some test output. I'm using ant (version 1.7.1) and running 'junitreport' on the converted output. I'm hoping you can understand why junitreport says this: [junitreport] the file /opt/cruisecontrol/projects/itinerator/results/AccountContactPeerTest.16589.xml is not a valid testsuite XML document The original TAP document was: # AccountContactPeerTest ok 1 - goo...@gmail.com maps to gmail2 provider 1..1 Looks like everything went fine. The xml doc created by tap2junit contains: <testsuites> <testsuite failures="0" errors="0" tests="1" name="_opt_cruisecontrol_projects_itinerator_results_AccountContactPeerTest_3469"> <testcase name="1 - goo...@gmail.com maps to gmail2 provider"></testcase> <system-out><![CDATA[# AccountContactPeerTest ok 1 - goo...@gmail.com maps to gmail2 provider 1..1 Looks like everything went fine. ]]></system-out> <system-err></system-err> </testsuite> </testsuites> Both look fine to me, but can you see anything obviously broken here?? I've attached both files as well. Thanks, -Tennis _________________________________________________________________ Windows Live™ Hotmail®: Search, add, and share the web’s latest sports videos. Check it out. http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_WL_QA_HM_sports_videos_072009&cat=sports