Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Can you tell test error from test failure with <junit >?

Can you tell test error from test failure with <junit >?

2005-06-06       - By Tony Lam

Hi,

I wonder if it is possible to tell junit test error apart from test
failure with <junit> task. I have a case where an unit test timed out,
it was a junit test error, but both errorProperty and failureProperty
were set to true. This made it impossible to tell test error from test
failure.

Any help is appreciated.

  <junit printsummary="false"
     filtertrace="${junit.filtertrace}"
     errorProperty="test.error"
     failureProperty="test.failed"
     fork="true"
     timeout="${junit.timeout}"
     ...

--- MESSAGE LOGGED
   [junit] Test my.package.service.submit.AllTests FAILED (timeout)
--- MESSAGE LOGGED
Setting project property: test.error -> true
--- MESSAGE LOGGED
Setting project property: test.failed -> true

Tony



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.