You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Hiller, Dean" <De...@McKesson.com> on 2010/10/20 18:28:04 UTC
junit ant task
So, I have a test hanging out of hundreds of tests, but unfortunately,
the log of
[junit] Beg com.xxx.Test
is logged AFTER the test completes so I can't see what test is failing
L......grrrr......Hard to believe since ant 1.3 that this problem is
still an issue and the default hasn't
been changed to log begin "before" the test starts.....I do realize
there is some problems with doing this the way ant is designed but I
figure there has to be
a fix out there by now???? If so, please let me know the new way of
doing it?
This is such a common problem and I would like to fix it so in the
Hudson and on a developers machine it always logs the test that is about
to run so immediately, they
Would know which test case.
Thanks,
Dean
RE: junit ant task
Posted by efe4it <ef...@gmail.com>.
Hi
Maybe you could set the "timeout" property of the <junit> task, so timeout
will appears in junit reports as cause for test failure.
Regards
Emmanuel
--
View this message in context: http://ant.1045680.n5.nabble.com/junit-ant-task-tp3233265p3243947.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: junit ant task
Posted by Martin Gainty <mg...@hotmail.com>.
Dean
if its surefire then look in ${project.folder}/target/surefire-reports you should see
${GroupId}.${ArtifactId}.txt and
${GroupId}.${ArtifactId}.xml
search for
Failures: 1
Errors: 1
Martin
______________________________________________
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: Dean.Hiller@McKesson.com
> To: user@ant.apache.org
> Subject: junit ant task
> Date: Wed, 20 Oct 2010 09:28:04 -0700
>
> So, I have a test hanging out of hundreds of tests, but unfortunately,
> the log of
>
>
>
> [junit] Beg com.xxx.Test
>
>
>
> is logged AFTER the test completes so I can't see what test is failing
> L......grrrr......Hard to believe since ant 1.3 that this problem is
> still an issue and the default hasn't
>
> been changed to log begin "before" the test starts.....I do realize
> there is some problems with doing this the way ant is designed but I
> figure there has to be
>
> a fix out there by now???? If so, please let me know the new way of
> doing it?
>
>
>
> This is such a common problem and I would like to fix it so in the
> Hudson and on a developers machine it always logs the test that is about
> to run so immediately, they
>
> Would know which test case.
>
>
>
> Thanks,
>
> Dean
>
>
>