Maven2 junit timeout revocation not working

We have a bunch of tests in the maven2 project and build with cruisecontrol. However, the assembly freezes regularly because the test annotation is timed out

@Test(timeout = 5000)

ignored. I tried to run maven locally, reproducing the fact that the timeout is ignored.

Is there a way to re-enable the timeout for tests?

I am currently using a workaround when setting a timeout in cruisecontrol. However, this simply means that the entire assembly is canceled, and not just those tests that should fail.

Note: It seems that in maven 1 there was a property to activate the junit timeout, which is missing in maven 2.

+5
source share
1 answer

All Articles