You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Emmanuel Bourg <eb...@apache.org> on 2021/02/02 21:29:30 UTC

Ignoring test failures

Hi all,

I'd like to add a mechanism to the Tomcat build to ignore the test
failures, something similar to the Maven testFailureIgnore property.

In Debian Tomcat is built in an offline container and the tribes tests
fail due to the lack of multicast. So build.xml has been patched to
remove the <fail> tasks, but it would be easier to set a build property
instead.

Do you think we could add something like this:

  <fail if="test.result.failure" unless:true="${test.ignorefailure}"/>

Emmanuel Bourg

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: Ignoring test failures

Posted by Mark Thomas <ma...@apache.org>.
On 02/02/2021 21:29, Emmanuel Bourg wrote:
> Hi all,
> 
> I'd like to add a mechanism to the Tomcat build to ignore the test
> failures, something similar to the Maven testFailureIgnore property.
> 
> In Debian Tomcat is built in an offline container and the tribes tests
> fail due to the lack of multicast. So build.xml has been patched to
> remove the <fail> tasks, but it would be easier to set a build property
> instead.
> 
> Do you think we could add something like this:
> 
>   <fail if="test.result.failure" unless:true="${test.ignorefailure}"/>

Why not use the test.exclude property to exclude the tribes tests? See
BUILDING.txt for usage.

Better to exclude tests you know are not relevant for your test
environment rather than ignoring all failures.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org