MPSIMIAN-7 customization of patternsets searched in test dir
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@209894 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ba4ae919eb
commit
5092c2c19f
@ -84,7 +84,10 @@
|
||||
<j:set var="includeTests" value="${maven.simian.includetests}"/>
|
||||
<j:if test="${includeTests == 'true'}">
|
||||
<j:if test="${unitTestSourcesPresent == 'true'}">
|
||||
<ant:fileset dir="${pom.build.unitTestSourceDirectory}" includes="**/*.java"/>
|
||||
<ant:fileset dir="${pom.build.unitTestSourceDirectory}">
|
||||
<ant:include name="${maven.simian.testincludes}"/>
|
||||
<ant:exclude name="${maven.simian.testexcludes}"/>
|
||||
</ant:fileset>
|
||||
</j:if>
|
||||
</j:if>
|
||||
|
||||
|
||||
@ -25,3 +25,5 @@ maven.simian.ignoremodifiers = false
|
||||
|
||||
maven.simian.includes = **/*.java
|
||||
maven.simian.excludes =
|
||||
maven.simian.testincludes = **/*.java
|
||||
maven.simian.testexcludes =
|
||||
|
||||
@ -19,3 +19,4 @@
|
||||
# -------------------------------------------------------------------
|
||||
maven.javadoc.links = http://java.sun.com/j2se/1.4.1/docs/api/
|
||||
maven.junit.fork=yes
|
||||
maven.simian.testexcludes = **/ExcludeMe.java
|
||||
|
||||
52
simian/src/test/org/apache/maven/simian/ExcludeMe.java
Normal file
52
simian/src/test/org/apache/maven/simian/ExcludeMe.java
Normal file
@ -0,0 +1,52 @@
|
||||
package org.apache.maven.simian;
|
||||
|
||||
/* ====================================================================
|
||||
* Copyright 2001-2004 The Apache Software Foundation.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* ====================================================================
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Eric Pugh
|
||||
* @version $Revision: 170200 $
|
||||
*/
|
||||
public class ExcludeMe {
|
||||
public void iShouldNotBeIncluded() {
|
||||
String one = "one";
|
||||
String two = "two";
|
||||
String three = "three";
|
||||
String four = "four";
|
||||
String five= "five";
|
||||
String six = "six";
|
||||
String seven = "seven";
|
||||
String eight = "eight";
|
||||
String nine = "nine";
|
||||
String ten = "ten";
|
||||
}
|
||||
|
||||
public void iShouldNotBeIncluded2() {
|
||||
String one = "one";
|
||||
String two = "two";
|
||||
String three = "three";
|
||||
String four = "four";
|
||||
String five= "five";
|
||||
String six = "six";
|
||||
String seven = "seven";
|
||||
String eight = "eight";
|
||||
String nine = "nine";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -26,7 +26,8 @@
|
||||
</properties>
|
||||
<body>
|
||||
<release version="1.5" date="in CVS">
|
||||
<action dev="benoitx" type="update">Upgrade to Simian 2.2.4 and XML file output from Simian.</action>
|
||||
<action dev="epugh" type="add" issue="MPSIMIAN-7">Add include/exclude pattern for test directories.</action>
|
||||
<action dev="benoitx" type="update" issue="MPSIMIAN-14">Upgrade to Simian 2.2.4 and XML file output from Simian.</action>
|
||||
</release>
|
||||
<release version="1.4.1-SNAPSHOT" date="in CVS">
|
||||
<action dev="dion" type="update">Ant dependency changed to 1.5.3.1.</action>
|
||||
|
||||
@ -110,6 +110,30 @@
|
||||
<code>${maven.src.dir}</code>. The default value is to not
|
||||
exclude any files.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.simian.testincludes</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Specifies a comma-separated list of Ant patterns to use
|
||||
when matching files in the test source tree to be included in the
|
||||
Simian report. The pattern specified is relative to
|
||||
<code>${pom.build.unitTestSourceDirectory}</code>. The default value is
|
||||
<code>**/*.java</code>, which matches all Java source files
|
||||
in the source tree (specified by the <code>${pom.build.unitTestSourceDirectory}</code>
|
||||
property.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.simian.testexcludes</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Specifies a comma-separated list of Ant patterns to use when
|
||||
matching files in the test source tree to be excluded from the
|
||||
Simian report. The pattern specified is relative to
|
||||
<code>${pom.build.unitTestSourceDirectory}</code>. The default value is to not
|
||||
exclude any files.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user