You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by vm...@apache.org on 2005/12/21 12:56:00 UTC

svn commit: r358270 - in /maven/plugins/trunk/maven-clover-plugin: ./ src/it/ src/it/maven-clover-plugin-sample-simple/ src/it/maven-clover-plugin-sample-simple/src/ src/it/maven-clover-plugin-sample-simple/src/main/ src/it/maven-clover-plugin-sample-s...

Author: vmassol
Date: Wed Dec 21 03:55:46 2005
New Revision: 358270

URL: http://svn.apache.org/viewcvs?rev=358270&view=rev
Log:
Start of using the it plugin for integration tests. Not working yet (the clover plugin is not triggered by the it plugin when the it test runs whereas it works if the it test is called by hand).

Added:
    maven/plugins/trunk/maven-clover-plugin/src/it/
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/pom.xml   (with props)
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/main/
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/main/java/
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/main/java/org/
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/main/java/org/apache/
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/main/java/org/apache/maven/
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/main/java/org/apache/maven/plugin/
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/main/java/org/apache/maven/plugin/clover/
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/main/java/org/apache/maven/plugin/clover/samples/
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/main/java/org/apache/maven/plugin/clover/samples/simple/
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/main/java/org/apache/maven/plugin/clover/samples/simple/Simple.java   (with props)
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/test/
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/test/java/
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/test/java/org/
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/test/java/org/apache/
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/test/java/org/apache/maven/
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/test/java/org/apache/maven/plugin/
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/test/java/org/apache/maven/plugin/clover/
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/test/java/org/apache/maven/plugin/clover/samples/
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/test/java/org/apache/maven/plugin/clover/samples/simple/
    maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/test/java/org/apache/maven/plugin/clover/samples/simple/SimpleTest.java   (with props)
Modified:
    maven/plugins/trunk/maven-clover-plugin/pom.xml

Modified: maven/plugins/trunk/maven-clover-plugin/pom.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-clover-plugin/pom.xml?rev=358270&r1=358269&r2=358270&view=diff
==============================================================================
--- maven/plugins/trunk/maven-clover-plugin/pom.xml (original)
+++ maven/plugins/trunk/maven-clover-plugin/pom.xml Wed Dec 21 03:55:46 2005
@@ -58,4 +58,19 @@
       <version>2.0</version>
     </dependency>
   </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-it-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>integration-test</phase>
+            <goals>
+              <goal>test</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
 </project>

Added: maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/pom.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/pom.xml?rev=358270&view=auto
==============================================================================
--- maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/pom.xml (added)
+++ maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/pom.xml Wed Dec 21 03:55:46 2005
@@ -0,0 +1,54 @@
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.maven.plugins</groupId>
+  <artifactId>maven-clover-plugin-sample-simple</artifactId>
+  <packaging>jar</packaging>
+  <name>Maven Clover Plugin Simple Sample</name>
+  <description>Maven Clover Plugin Simple Sample</description>
+  <version>1.0-SNAPSHOT</version>
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  <reporting>
+    <excludeDefaults>true</excludeDefaults>
+    <plugins>
+      <plugin>
+        <artifactId>maven-clover-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </reporting>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <source>1.4</source>
+          <target>1.4</target>
+        </configuration>
+      </plugin>
+      <plugin>
+        <artifactId>maven-clover-plugin</artifactId>
+        <configuration>
+          <jdk>1.4</jdk>
+          <flushPolicy>threaded</flushPolicy>
+          <flushInterval>100</flushInterval>
+        </configuration>
+        <executions>
+          <execution>
+            <configuration>
+              <targetPercentage>1%</targetPercentage>
+            </configuration>
+            <goals>
+              <goal>check</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/main/java/org/apache/maven/plugin/clover/samples/simple/Simple.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/main/java/org/apache/maven/plugin/clover/samples/simple/Simple.java?rev=358270&view=auto
==============================================================================
--- maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/main/java/org/apache/maven/plugin/clover/samples/simple/Simple.java (added)
+++ maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/main/java/org/apache/maven/plugin/clover/samples/simple/Simple.java Wed Dec 21 03:55:46 2005
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2005 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.
+ */
+package org.apache.maven.plugin.clover.samples.simple;
+
+public class Simple
+{
+    public void someMethod()
+    {
+        assert true == true : "true was not true";
+        
+        int i = 0;
+        if (i > 0)
+        {
+            i = i + 1;
+        }
+    }
+}

Propchange: maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/main/java/org/apache/maven/plugin/clover/samples/simple/Simple.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/main/java/org/apache/maven/plugin/clover/samples/simple/Simple.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/test/java/org/apache/maven/plugin/clover/samples/simple/SimpleTest.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/test/java/org/apache/maven/plugin/clover/samples/simple/SimpleTest.java?rev=358270&view=auto
==============================================================================
--- maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/test/java/org/apache/maven/plugin/clover/samples/simple/SimpleTest.java (added)
+++ maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/test/java/org/apache/maven/plugin/clover/samples/simple/SimpleTest.java Wed Dec 21 03:55:46 2005
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2005 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.
+ */
+package org.apache.maven.plugin.clover.samples.simple;
+
+import junit.framework.TestCase;
+
+public class SimpleTest extends TestCase
+{
+    public void testSomeMethod()
+    {
+        Simple simple = new Simple();
+        simple.someMethod();
+    }
+}
+ 
\ No newline at end of file

Propchange: maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/test/java/org/apache/maven/plugin/clover/samples/simple/SimpleTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-clover-plugin/src/it/maven-clover-plugin-sample-simple/src/test/java/org/apache/maven/plugin/clover/samples/simple/SimpleTest.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"