[ http://jira.codehaus.org/browse/MPTEST-10?page=all ] Lukas Theussl closed MPTEST-10: -------------------------------
Resolution: Fixed > Add timeouts to the test plugin > ------------------------------- > > Key: MPTEST-10 > URL: http://jira.codehaus.org/browse/MPTEST-10 > Project: maven-test-plugin > Type: Improvement > Reporter: Julian Payne > Fix For: 1.8 > > > 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 --> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira