Is there a way to make hudson report the assembly as unsuccessful rather than unstable if only one unit test fails? thanks.
Hudson actually lets you ignore testing errors. It just needs to be put as a property in hudson. -Dmaven.test.failure.ignore = FALSE
, hudson. , hudson /, . , , , , .
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" />
Ant , JUnit . , ?
, , (), - . .
Otherwise, if you want to use the Ant method, since the proposed maven can run Ant tasks ...