Author: krosenvold
Date: Wed Nov 23 20:29:57 2011
New Revision: 1205567

URL: http://svn.apache.org/viewvc?rev=1205567&view=rev
Log:
[SUREFIRE-794] Added testcase, unable to reproduce

Check out this testcase and use mvn -PwithXmlFile 
-Dsurefire.version=2.11-SNAPSHOT -Djunit.version=4.8 test to try to reproduce

Added:
    
maven/surefire/trunk/surefire-integration-tests/src/test/resources/includes-excludes/src/test/java/org/test/aTestXmlFile.xml
   (with props)
Modified:
    
maven/surefire/trunk/surefire-integration-tests/src/test/resources/includes-excludes/pom.xml

Modified: 
maven/surefire/trunk/surefire-integration-tests/src/test/resources/includes-excludes/pom.xml
URL: 
http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/includes-excludes/pom.xml?rev=1205567&r1=1205566&r2=1205567&view=diff
==============================================================================
--- 
maven/surefire/trunk/surefire-integration-tests/src/test/resources/includes-excludes/pom.xml
 (original)
+++ 
maven/surefire/trunk/surefire-integration-tests/src/test/resources/includes-excludes/pom.xml
 Wed Nov 23 20:29:57 2011
@@ -29,11 +29,17 @@ under the License.
   <name>Maven Integration Test :: includes-excludes</name>
   <description>Test surefire inclusion/exclusions</description>
 
+  <properties>
+    <junit.version>3.8.2</junit.version>
+  </properties>
+
+
+
   <dependencies>
     <dependency>
       <artifactId>junit</artifactId>
       <groupId>junit</groupId>
-      <version>3.8.2</version>
+      <version>${junit.version}</version>
       <scope>test</scope>
     </dependency>
   </dependencies>
@@ -104,6 +110,24 @@ under the License.
         </plugins>
       </build>
     </profile>
+      <profile>
+        <id>withXmlFile</id>
+        <build>
+          <plugins>
+            <plugin>
+              <artifactId>maven-surefire-plugin</artifactId>
+              <configuration>
+                  <excludes>
+                    <exclude>**/DontRunTest.java</exclude>
+                  </excludes>
+                <includes>
+                  <include>**/*.xml</include>
+                </includes>
+              </configuration>
+            </plugin>
+          </plugins>
+        </build>
+      </profile>
 
   </profiles>
 </project>

Added: 
maven/surefire/trunk/surefire-integration-tests/src/test/resources/includes-excludes/src/test/java/org/test/aTestXmlFile.xml
URL: 
http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/includes-excludes/src/test/java/org/test/aTestXmlFile.xml?rev=1205567&view=auto
==============================================================================
--- 
maven/surefire/trunk/surefire-integration-tests/src/test/resources/includes-excludes/src/test/java/org/test/aTestXmlFile.xml
 (added)
+++ 
maven/surefire/trunk/surefire-integration-tests/src/test/resources/includes-excludes/src/test/java/org/test/aTestXmlFile.xml
 Wed Nov 23 20:29:57 2011
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  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 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.
+-->
+
+<project>
+    <foo/>
+</project>

Propchange: 
maven/surefire/trunk/surefire-integration-tests/src/test/resources/includes-excludes/src/test/java/org/test/aTestXmlFile.xml
------------------------------------------------------------------------------
    svn:eol-style = native


Reply via email to