Clarify and correct maven.test.haltafterfailure explanation.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@601604 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2431e88b5c
commit
fda88665cf
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||||
<!--
|
<!--
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
* contributor license agreements. See the NOTICE file distributed with
|
* contributor license agreements. See the NOTICE file distributed with
|
||||||
@ -7,9 +7,9 @@
|
|||||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||||
* (the "License"); you may not use this file except in compliance with
|
* (the "License"); you may not use this file except in compliance with
|
||||||
* the License. You may obtain a copy of the License at
|
* the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
@ -20,7 +20,7 @@
|
|||||||
<document>
|
<document>
|
||||||
<properties>
|
<properties>
|
||||||
<title>Test Properties</title>
|
<title>Test Properties</title>
|
||||||
<author email="smor@apache.org">Stéphane MOR</author>
|
<author email="smor@apache.org">Stéphane MOR</author>
|
||||||
</properties>
|
</properties>
|
||||||
<body>
|
<body>
|
||||||
<section name="Test Settings">
|
<section name="Test Settings">
|
||||||
@ -35,7 +35,7 @@
|
|||||||
<td>Yes</td>
|
<td>Yes</td>
|
||||||
<td>
|
<td>
|
||||||
The directory to invoke the VM in. (ignored if fork is disabled).
|
The directory to invoke the VM in. (ignored if fork is disabled).
|
||||||
The default value is <code>${basedir}</code>.
|
The default value is <code>${basedir}</code>.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -44,7 +44,7 @@
|
|||||||
<td>
|
<td>
|
||||||
If fork is enabled, additional environment variables may be passed to the new VM.
|
If fork is enabled, additional environment variables may be passed to the new VM.
|
||||||
You can specify some variable separated by a space.
|
You can specify some variable separated by a space.
|
||||||
Each variable is describe in sub properties.
|
Each variable is describe in sub properties.
|
||||||
Sample :
|
Sample :
|
||||||
<source><![CDATA[
|
<source><![CDATA[
|
||||||
maven.junit.envvars=LD_LIBRARY_PATH
|
maven.junit.envvars=LD_LIBRARY_PATH
|
||||||
@ -86,7 +86,7 @@ maven.junit.jvmargs=-Xmx160m -verbose]]></source>
|
|||||||
<td>
|
<td>
|
||||||
NOTE: Ignored in maven < 1.1.
|
NOTE: Ignored in maven < 1.1.
|
||||||
Controls how many Java Virtual Machines get created if you want
|
Controls how many Java Virtual Machines get created if you want
|
||||||
to fork some tests. Possible values are "perTest" (the default),
|
to fork some tests. Possible values are "perTest" (the default),
|
||||||
and "once". "once" creates only a single Java VM for
|
and "once". "once" creates only a single Java VM for
|
||||||
all tests while "perTest" creates a new VM for each TestCase class.
|
all tests while "perTest" creates a new VM for each TestCase class.
|
||||||
Note that only tests with the same settings of
|
Note that only tests with the same settings of
|
||||||
@ -110,7 +110,7 @@ maven.junit.jvmargs=-Xmx160m -verbose]]></source>
|
|||||||
<td>maven.junit.printSummary</td>
|
<td>maven.junit.printSummary</td>
|
||||||
<td>Yes</td>
|
<td>Yes</td>
|
||||||
<td>
|
<td>
|
||||||
If this value is set to false, JUnit test run details will not
|
If this value is set to false, JUnit test run details will not
|
||||||
include test summary information for a suite. Default value is
|
include test summary information for a suite. Default value is
|
||||||
<code>true</code>. This parameter corresponds to the JUnit Ant
|
<code>true</code>. This parameter corresponds to the JUnit Ant
|
||||||
task <code>printSummary</code> attribute.
|
task <code>printSummary</code> attribute.
|
||||||
@ -147,7 +147,7 @@ maven.junit.jvmargs=-Xmx160m -verbose]]></source>
|
|||||||
<td>maven.test.compile.encoding</td>
|
<td>maven.test.compile.encoding</td>
|
||||||
<td>Yes</td>
|
<td>Yes</td>
|
||||||
<td>
|
<td>
|
||||||
Specifies source encoding to be used for tests compilation.
|
Specifies source encoding to be used for tests compilation.
|
||||||
Defaults to ${maven.compile.encoding}.
|
Defaults to ${maven.compile.encoding}.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -158,15 +158,15 @@ maven.junit.jvmargs=-Xmx160m -verbose]]></source>
|
|||||||
Names the program to be invoked as the java compiler for test classes.
|
Names the program to be invoked as the java compiler for test classes.
|
||||||
Defaults to ${maven.compile.executable}.
|
Defaults to ${maven.compile.executable}.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>maven.test.compile.fork</td>
|
<td>maven.test.compile.fork</td>
|
||||||
<td>Yes</td>
|
<td>Yes</td>
|
||||||
<td>
|
<td>
|
||||||
Runs the test classes compiler in a separate process.
|
Runs the test classes compiler in a separate process.
|
||||||
Defaults to ${maven.compile.fork}.
|
Defaults to ${maven.compile.fork}.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>maven.test.compile.source</td>
|
<td>maven.test.compile.source</td>
|
||||||
<td>Yes</td>
|
<td>Yes</td>
|
||||||
@ -174,7 +174,7 @@ maven.junit.jvmargs=-Xmx160m -verbose]]></source>
|
|||||||
Specifies the source version for the Java compiler for test classes.
|
Specifies the source version for the Java compiler for test classes.
|
||||||
Defaults to ${maven.compile.source}.
|
Defaults to ${maven.compile.source}.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>maven.test.compile.target</td>
|
<td>maven.test.compile.target</td>
|
||||||
<td>Yes</td>
|
<td>Yes</td>
|
||||||
@ -182,7 +182,7 @@ maven.junit.jvmargs=-Xmx160m -verbose]]></source>
|
|||||||
Generate class files for test classes for a specific JVM version.
|
Generate class files for test classes for a specific JVM version.
|
||||||
Defaults to ${maven.compile.target}.
|
Defaults to ${maven.compile.target}.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>maven.test.compile.verbose</td>
|
<td>maven.test.compile.verbose</td>
|
||||||
<td>Yes</td>
|
<td>Yes</td>
|
||||||
@ -190,7 +190,7 @@ maven.junit.jvmargs=-Xmx160m -verbose]]></source>
|
|||||||
Asks the compiler for verbose output.
|
Asks the compiler for verbose output.
|
||||||
Defaults to ${maven.compile.verbose}.
|
Defaults to ${maven.compile.verbose}.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>maven.test.classpath</td>
|
<td>maven.test.classpath</td>
|
||||||
<td>Yes</td>
|
<td>Yes</td>
|
||||||
@ -214,7 +214,7 @@ maven.junit.jvmargs=-Xmx160m -verbose]]></source>
|
|||||||
<td>
|
<td>
|
||||||
Specifies the unit test classes directory. This is the
|
Specifies the unit test classes directory. This is the
|
||||||
location where the java classes for the test source
|
location where the java classes for the test source
|
||||||
code will be generated to. The default value is
|
code will be generated to. The default value is
|
||||||
<code>${maven.build.dir}/test-classes</code>.
|
<code>${maven.build.dir}/test-classes</code>.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -248,8 +248,12 @@ maven.junit.jvmargs=-Xmx160m -verbose]]></source>
|
|||||||
<td>Yes</td>
|
<td>Yes</td>
|
||||||
<td>
|
<td>
|
||||||
Set this to <code>true</code> to halt the build on any test failures
|
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>
|
<strong>after</strong> all tests have run.
|
||||||
all tests have been run. Default value is <code>false</code>.
|
maven.test.haltafterfailure is only obeyed if
|
||||||
|
maven.test.failure.ignore=true, so you have to use them together.
|
||||||
|
To also halt the build on any test errors after
|
||||||
|
all tests have run, set maven.test.error.ignore=true too.
|
||||||
|
Default value is <code>false</code>.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -277,7 +281,7 @@ maven.junit.jvmargs=-Xmx160m -verbose]]></source>
|
|||||||
Provide source compatibility with a specific release
|
Provide source compatibility with a specific release
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Corresponds to the <code>source</code> attribute for the ant
|
Corresponds to the <code>source</code> attribute for the ant
|
||||||
<a href="http://ant.apache.org/manual/CoreTasks/javac.html">javac</a>
|
<a href="http://ant.apache.org/manual/CoreTasks/javac.html">javac</a>
|
||||||
task.
|
task.
|
||||||
</p>
|
</p>
|
||||||
@ -289,9 +293,9 @@ maven.junit.jvmargs=-Xmx160m -verbose]]></source>
|
|||||||
<td>
|
<td>
|
||||||
Use this property elements to specify system properties required
|
Use this property elements to specify system properties required
|
||||||
by the class. These properties will be made available to the VM during
|
by the class. These properties will be made available to the VM during
|
||||||
the execution of the test (either Maven's VM or the forked VM, if fork is enabled).
|
the execution of the test (either Maven's VM or the forked VM, if fork is enabled).
|
||||||
You can specify system properties separate by space.
|
You can specify system properties separate by space.
|
||||||
Each properties is describe in sub properties.
|
Each properties is describe in sub properties.
|
||||||
Sample :
|
Sample :
|
||||||
<source><![CDATA[
|
<source><![CDATA[
|
||||||
maven.junit.sysproperties=prop1 basedir
|
maven.junit.sysproperties=prop1 basedir
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user