I have in my project a lot of unit tests, written in JUnit and TestNG. The building process is based on maven with surefire plugin.
Is there any way/plugin for maven to
Why don't add a timeout on a per test basis. I assume you're programming in Java, so in JUnit you can do something like this:
@Test(timeout=100) public void testQuickly()
If the test doesn't end after 100 milliseconds, it will fail.