From 1e989abf964506464ac19326d26d7bdb396a85cf Mon Sep 17 00:00:00 2001 From: ltheussl Date: Fri, 24 Mar 2006 17:30:12 +0000 Subject: [PATCH] PR: MPTEST-10 Add timeouts to the test plugin, new property maven.junit.timeout. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@388584 13f79535-47bb-0310-9956-ffa450edef68 --- test/plugin.jelly | 9 +++++++++ test/plugin.properties | 1 + test/xdocs/changes.xml | 1 + test/xdocs/properties.xml | 8 ++++++++ 4 files changed, 19 insertions(+) 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