From ce901982217258dfcd4b7e1ccc17866695db2bd8 Mon Sep 17 00:00:00 2001 From: ltheussl Date: Tue, 7 Nov 2006 12:50:26 +0000 Subject: [PATCH] PR: MPTEST-71 New property maven.test.haltafterfailure to halt a build on test failures but after all tests have been run. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@472091 13f79535-47bb-0310-9956-ffa450edef68 --- test/plugin.jelly | 9 +++++++++ test/plugin.properties | 1 + test/xdocs/changes.xml | 1 + test/xdocs/properties.xml | 9 +++++++++ 4 files changed, 20 insertions(+) diff --git a/test/plugin.jelly b/test/plugin.jelly index 377e184d..9a9a43d8 100644 --- a/test/plugin.jelly +++ b/test/plugin.jelly @@ -211,6 +211,9 @@ + + There were test failures! + ========================================================== @@ -353,6 +356,9 @@ + + There were test failures! + ========================================================== @@ -482,6 +488,9 @@ + + There were test failures! + ========================================================== diff --git a/test/plugin.properties b/test/plugin.properties index c13c985e..08019b4c 100644 --- a/test/plugin.properties +++ b/test/plugin.properties @@ -36,6 +36,7 @@ maven.test.reportsDirectory = ${maven.build.dir}/test-reports maven.test.skip = false maven.test.excludeXmlApis = no maven.test.classpath = +maven.test.haltafterfailure=false maven.test.compile.compilerargs = ${maven.compile.compilerargs} maven.test.compile.encoding = ${maven.compile.encoding} diff --git a/test/xdocs/changes.xml b/test/xdocs/changes.xml index 8c03f37c..c5acbf4d 100644 --- a/test/xdocs/changes.xml +++ b/test/xdocs/changes.xml @@ -24,6 +24,7 @@ + New property to halt a build on test failures but after all tests have been run. New properties to configure compiler for test classes. SourceModifications sometimes does not work for test classes. maven.compile.target is not used in test:compile. diff --git a/test/xdocs/properties.xml b/test/xdocs/properties.xml index c939d1b0..18b21c5b 100644 --- a/test/xdocs/properties.xml +++ b/test/xdocs/properties.xml @@ -242,6 +242,15 @@ maven.junit.jvmargs=-Xmx160m -verbose]]> Its use is NOT RECOMMENDED, but quite convenient on occasion. + + maven.test.haltafterfailure + Yes + + Set this to true to halt the build on any test failures + (note: errors are considered failures as well), but after + all tests have been run. Default value is false. + + maven.test.reportsDirectory Yes