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