I need to be able to set a timeout in the unit tests because we have graphical tests that block from time to time.
Here is what I would like to be added in the plugin.jelly as part of the junit element:
<junit printSummary="${maven.junit.printsummary}"
failureProperty="maven.test.failure"
fork="${maven.junit.fork}"
dir="${maven.junit.dir}">
<!-- start of script to control the timeouut -->
<j:if test="${context.getVariable('maven.junit.timeout') != null}">
<setProperty name="timeout" value="${maven.junit.timeout}" />
</j:if>
<!-- end of script to control the timeouut -->