You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Knuplesch, Juergen" <Ju...@icongmbh.de> on 2010/06/11 15:26:46 UTC

Timeout in junit and sysout

Hello,

 

some of our Junit tests run sometimes into the timeout I have set.

Sadly we do not see any sysouts in my logs.

 

Do I have to use system.out.flush or how can I make this sysouts visible?

 

Juergen

 

-- 

Jürgen Knuplesch                    www.icongmbh.de <http://www.icongmbh.de/> 

icon Systemhaus GmbH                Tel. +49 711 806098-275

Sophienstraße 40                    juergen.knuplesch@icongmbh.de

D-70178 Stuttgart                   Fax. +49 711 806098-299

 

Geschäftsführer: Uwe Seltmann

HRB Stuttgart 17655

USt-IdNr.: DE 811944121 

 

 


AW: Timeout in junit and sysout

Posted by "Knuplesch, Juergen" <Ju...@icongmbh.de>.
Thanks Stefan,

this was just a coincidence. 
(A developer just comittet a new test, that started a subprocess and was not able to kill the subprocess. 
So the Ant build was hanging and the timeout could not kill the whole process. Terrible!)

Regards Juergen

-----Ursprüngliche Nachricht-----
Von: Stefan Bodewig [mailto:bodewig@apache.org] 
Gesendet: Mittwoch, 16. Juni 2010 09:14
An: user@ant.apache.org
Betreff: Re: Timeout in junit and sysout

On 2010-06-16, Knuplesch, Juergen wrote:

> I added the showoutput=true to my <junit> task.

> Now I experience that the timeout does not work!

I wouldn't expect showoutput to have any influence on the timeout.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Timeout in junit and sysout

Posted by Stefan Bodewig <bo...@apache.org>.
On 2010-06-16, Knuplesch, Juergen wrote:

> I added the showoutput=true to my <junit> task.

> Now I experience that the timeout does not work!

I wouldn't expect showoutput to have any influence on the timeout.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


AW: Timeout in junit and sysout

Posted by "Knuplesch, Juergen" <Ju...@icongmbh.de>.
Hello,

I added the showoutput=true to my <junit> task.

Now I experience that the timeout does not work!
So my build hangs, because one test is not terminating.

Does this have something to do do with the showoutput or is this just a coincidence?


Regards Jürgen

-----Ursprüngliche Nachricht-----
Von: Stefan Bodewig [mailto:bodewig@apache.org] 
Gesendet: Samstag, 12. Juni 2010 06:40
An: user@ant.apache.org
Betreff: Re: Timeout in junit and sysout

On 2010-06-11, Knuplesch, Juergen wrote:

> some of our Junit tests run sometimes into the timeout I have set.

> Sadly we do not see any sysouts in my logs.

> Do I have to use system.out.flush or how can I make this sysouts visible?

If you are using a plain logger, this should help.  The XML logger
buffers any output until the test is finished and runs inside the forked
VM which gets killed so it will never write anything.

Another option may be to set showoutput to "true" so that anything
written by your tests will end up in Ant logging system.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


AW: Timeout in junit and sysout

Posted by "Knuplesch, Juergen" <Ju...@icongmbh.de>.
Thank you, Stefen, I will try this!



-----Ursprüngliche Nachricht-----
Von: Stefan Bodewig [mailto:bodewig@apache.org] 
Gesendet: Samstag, 12. Juni 2010 06:40
An: user@ant.apache.org
Betreff: Re: Timeout in junit and sysout

On 2010-06-11, Knuplesch, Juergen wrote:

> some of our Junit tests run sometimes into the timeout I have set.

> Sadly we do not see any sysouts in my logs.

> Do I have to use system.out.flush or how can I make this sysouts visible?

If you are using a plain logger, this should help.  The XML logger
buffers any output until the test is finished and runs inside the forked
VM which gets killed so it will never write anything.

Another option may be to set showoutput to "true" so that anything
written by your tests will end up in Ant logging system.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Timeout in junit and sysout

Posted by Stefan Bodewig <bo...@apache.org>.
On 2010-06-11, Knuplesch, Juergen wrote:

> some of our Junit tests run sometimes into the timeout I have set.

> Sadly we do not see any sysouts in my logs.

> Do I have to use system.out.flush or how can I make this sysouts visible?

If you are using a plain logger, this should help.  The XML logger
buffers any output until the test is finished and runs inside the forked
VM which gets killed so it will never write anything.

Another option may be to set showoutput to "true" so that anything
written by your tests will end up in Ant logging system.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org