diff --git a/test/plugin.jelly b/test/plugin.jelly index 89310b3b..241ba76a 100644 --- a/test/plugin.jelly +++ b/test/plugin.jelly @@ -148,6 +148,9 @@ + + + @@ -278,6 +281,9 @@ + + + ${maven.junit.sysproperties} @@ -368,6 +374,9 @@ + + + ${maven.junit.sysproperties} diff --git a/test/plugin.properties b/test/plugin.properties index 88a71d69..fc32ef89 100644 --- a/test/plugin.properties +++ b/test/plugin.properties @@ -27,6 +27,7 @@ maven.junit.format=brief maven.junit.jvmargs= maven.junit.envvars= maven.junit.jvm= +#maven.junit.timeout= maven.junit.printSummary=true maven.junit.usefile = true diff --git a/test/xdocs/changes.xml b/test/xdocs/changes.xml index a444302c..f018d433 100644 --- a/test/xdocs/changes.xml +++ b/test/xdocs/changes.xml @@ -24,6 +24,7 @@ + Add timeouts to the test plugin, new property maven.junit.timeout. Add ability to fail the build on test errors, new property maven.test.error.ignore. Do not execute test:test-resources and test:compile unless tests will be run. test:single should ignore maven.test.skip=true. diff --git a/test/xdocs/properties.xml b/test/xdocs/properties.xml index d84e0f17..d4ff553b 100644 --- a/test/xdocs/properties.xml +++ b/test/xdocs/properties.xml @@ -98,6 +98,14 @@ If maven.junit.fork is not true, this is ignored. + + maven.junit.timeout + Yes + + Cancel the individual tests if they don't finish in the given time + (measured in milliseconds). Ignored if fork is disabled. + + maven.test.dest Yes
maven.junit.timeout
maven.test.error.ignore
test:test-resources
test:compile
test:single
maven.test.skip=true