You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by dl...@apache.org on 2016/04/12 15:58:31 UTC

[14/39] accumulo git commit: ACCUMULO-4175 Validate the location of test ITs

ACCUMULO-4175 Validate the location of test ITs

* Verify ITs exist only in src/main/java for test module
  (change due to ACCUMULO-3871)


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/f2840273
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/f2840273
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/f2840273

Branch: refs/heads/ACCUMULO-4173
Commit: f284027334c159e806f94e881e8648b4c0ce6dd9
Parents: 5742342
Author: Christopher Tubbs <ct...@apache.org>
Authored: Fri Apr 1 13:25:41 2016 -0400
Committer: Christopher Tubbs <ct...@apache.org>
Committed: Fri Apr 1 14:57:09 2016 -0400

----------------------------------------------------------------------
 test/pom.xml | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/f2840273/test/pom.xml
----------------------------------------------------------------------
diff --git a/test/pom.xml b/test/pom.xml
index e78a9c1..6da0f0e 100644
--- a/test/pom.xml
+++ b/test/pom.xml
@@ -259,6 +259,28 @@
         </plugin>
       </plugins>
     </pluginManagement>
+    <plugins>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>exec-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>check-for-misplaced-ITs</id>
+            <goals>
+              <goal>exec</goal>
+            </goals>
+            <phase>validate</phase>
+            <configuration>
+              <executable>bash</executable>
+              <arguments>
+                <argument>-c</argument>
+                <argument>! find src/test/java -name '*IT.java' -exec echo '[ERROR] {} should be in src/main/java' \; | grep 'src/test/java'</argument>
+              </arguments>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
   </build>
   <profiles>
     <profile>