Get clojure:test working 75/13575/1
authorMichael Hwang <mhwang@research.att.com>
Tue, 19 Sep 2017 19:29:35 +0000 (15:29 -0400)
committerMichael Hwang <mhwang@research.att.com>
Tue, 19 Sep 2017 19:31:09 +0000 (15:31 -0400)
Also have `mvn test` use `mvn clojure:test`

Change-Id: I4c76e6298f44d3136997df6c20a9399b34cf08f2
Issue-Id: DCAEGEN2-60
Signed-off-by: Michael Hwang <mhwang@research.att.com>
pom.xml

diff --git a/pom.xml b/pom.xml
index 994faaf..5552875 100644 (file)
--- a/pom.xml
+++ b/pom.xml
     </dependencies>
 
     <build>
+        <!-- Needed for the clojure plugin to point to the tests directory. Didn't work as
+             a configuration option under the clojure plugin -->
+        <testSourceDirectory>test</testSourceDirectory>
+
         <plugins>
             <!-- This seems to be the only place to specify the application entrypoint -->
             <plugin>
                           <goal>compile</goal>
                       </goals>
                   </execution>
+                  <execution>
+                      <id>test</id>
+                      <phase>test</phase>
+                      <goals>
+                          <goal>test</goal>
+                      </goals>
+                  </execution>
                 </executions>
             </plugin>
 
                 </configuration>
             </plugin>
 
+            <!-- Added in support for sonar but sonar doesn't support Clojure so there's no
+                 point -->
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>sonar-maven-plugin</artifactId>
+                <version>3.2</version>
+            </plugin>
+
         </plugins>
     </build>
 </project>