Hudson crash on single unit test failure

Is there a way to make hudson report the assembly as unsuccessful rather than unstable if only one unit test fails? thanks.

+5
source share
5 answers

Hudson actually lets you ignore testing errors. It just needs to be put as a property in hudson. -Dmaven.test.failure.ignore = FALSE

+13
source

, hudson. , hudson /, . , , , , .

+3

junit

errorProperty="maven.test.error"
failureProperty="maven.test.failure"

junit -

<fail message="Test failed!!!" if="maven.test.error" />
<fail message="Test failed!!!" if="maven.test.failure" />

+2

Ant , JUnit . , ?

0

, , (), - . .

Otherwise, if you want to use the Ant method, since the proposed maven can run Ant tasks ...

0
source

All Articles