Maven2 junit timeout annotation doesn't work
- by roesslerj
We have a bunch of tests in a maven2 project and build with cruisecontrol. However the build regularly hangs, because the annotation of the test with a timeout
@Test(timeout = 5000)
is ignored.
I tried and run maven locally, reproducing the fact, that the timeout is ignored.
Is there a way to activate the timeout for the tests again?
I currently use a work arround in setting a timeout in cruisecontrol. However this simply means that the whole build is chancelled, and not just the tests that should fail.
Remark:
It seems in maven 1 there was a property to activate the junit timeout which is missing in maven 2.