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
This commit is contained in:
parent
5f5f08d50e
commit
ce90198221
@ -211,6 +211,9 @@
|
|||||||
|
|
||||||
<j:set var="_testfailure" value="${maven.test.failure}"/>
|
<j:set var="_testfailure" value="${maven.test.failure}"/>
|
||||||
<j:if test="${_testfailure}">
|
<j:if test="${_testfailure}">
|
||||||
|
<j:if test="${context.getVariable('maven.test.haltafterfailure') != 'false'}">
|
||||||
|
<ant:fail>There were test failures!</ant:fail>
|
||||||
|
</j:if>
|
||||||
<echo>
|
<echo>
|
||||||
==========================================================
|
==========================================================
|
||||||
|
|
||||||
@ -353,6 +356,9 @@
|
|||||||
|
|
||||||
<j:set var="_testfailure" value="${maven.test.failure}"/>
|
<j:set var="_testfailure" value="${maven.test.failure}"/>
|
||||||
<j:if test="${_testfailure}">
|
<j:if test="${_testfailure}">
|
||||||
|
<j:if test="${context.getVariable('maven.test.haltafterfailure') != 'false'}">
|
||||||
|
<ant:fail>There were test failures!</ant:fail>
|
||||||
|
</j:if>
|
||||||
<echo>
|
<echo>
|
||||||
==========================================================
|
==========================================================
|
||||||
|
|
||||||
@ -482,6 +488,9 @@
|
|||||||
|
|
||||||
<j:set var="_testfailure" value="${maven.test.failure}"/>
|
<j:set var="_testfailure" value="${maven.test.failure}"/>
|
||||||
<j:if test="${_testfailure}">
|
<j:if test="${_testfailure}">
|
||||||
|
<j:if test="${context.getVariable('maven.test.haltafterfailure') != 'false'}">
|
||||||
|
<ant:fail>There were test failures!</ant:fail>
|
||||||
|
</j:if>
|
||||||
<echo>
|
<echo>
|
||||||
==========================================================
|
==========================================================
|
||||||
|
|
||||||
|
|||||||
@ -36,6 +36,7 @@ maven.test.reportsDirectory = ${maven.build.dir}/test-reports
|
|||||||
maven.test.skip = false
|
maven.test.skip = false
|
||||||
maven.test.excludeXmlApis = no
|
maven.test.excludeXmlApis = no
|
||||||
maven.test.classpath =
|
maven.test.classpath =
|
||||||
|
maven.test.haltafterfailure=false
|
||||||
|
|
||||||
maven.test.compile.compilerargs = ${maven.compile.compilerargs}
|
maven.test.compile.compilerargs = ${maven.compile.compilerargs}
|
||||||
maven.test.compile.encoding = ${maven.compile.encoding}
|
maven.test.compile.encoding = ${maven.compile.encoding}
|
||||||
|
|||||||
@ -24,6 +24,7 @@
|
|||||||
</properties>
|
</properties>
|
||||||
<body>
|
<body>
|
||||||
<release version="1.8.1-SNAPSHOT" date="In SVN">
|
<release version="1.8.1-SNAPSHOT" date="In SVN">
|
||||||
|
<action dev="ltheussl" type="add" issue="MPTEST-71">New property to halt a build on test failures but after all tests have been run.</action>
|
||||||
<action dev="ltheussl" type="add" due-to="Nicolas de Loof" issue="MPTEST-69">New properties to configure compiler for test classes.</action>
|
<action dev="ltheussl" type="add" due-to="Nicolas de Loof" issue="MPTEST-69">New properties to configure compiler for test classes.</action>
|
||||||
<action dev="ltheussl" type="fix" due-to="Dennis Lundberg" issue="MPTEST-68">SourceModifications sometimes does not work for test classes.</action>
|
<action dev="ltheussl" type="fix" due-to="Dennis Lundberg" issue="MPTEST-68">SourceModifications sometimes does not work for test classes.</action>
|
||||||
<action dev="ltheussl" type="fix" due-to="Shinobu Kawai" issue="MPTEST-67">maven.compile.target is not used in test:compile.</action>
|
<action dev="ltheussl" type="fix" due-to="Shinobu Kawai" issue="MPTEST-67">maven.compile.target is not used in test:compile.</action>
|
||||||
|
|||||||
@ -242,6 +242,15 @@ maven.junit.jvmargs=-Xmx160m -verbose]]></source>
|
|||||||
Its use is <b>NOT RECOMMENDED</b>, but quite convenient on occasion.
|
Its use is <b>NOT RECOMMENDED</b>, but quite convenient on occasion.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>maven.test.haltafterfailure</td>
|
||||||
|
<td>Yes</td>
|
||||||
|
<td>
|
||||||
|
Set this to <code>true</code> to halt the build on any test failures
|
||||||
|
(note: errors are considered failures as well), but <strong>after</strong>
|
||||||
|
all tests have been run. Default value is <code>false</code>.
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>maven.test.reportsDirectory</td>
|
<td>maven.test.reportsDirectory</td>
|
||||||
<td>Yes</td>
|
<td>Yes</td>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user