ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tennis Smith <ten...@tripit.com>
Subject Re: tap2junit query
Date Mon, 27 Jul 2009 11:21:37 GMT
Hi Martin,

Thanks for the  quick reply!

Since the tap2junit utility is used to convert a non-junit test to
junit-like output, I do not have a junit definition.  Do I need one even if
I'm not using junit?

-T
On Sun, Jul 26, 2009 at 5:51 PM, Martin Gainty <mgainty@hotmail.com> wrote:

>
> 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 - google@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: tennis@tripit.com
> Date: Sun, 26 Jul 2009 14:26:47 -0700
> Subject: tap2junit query
> To: cpan@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 - google@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 - google@gmail.com maps to gmail2
> provider"></testcase>
>
>
>    <system-out><![CDATA[# AccountContactPeerTest
> ok 1 - google@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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message