Fix sonar display for usecase-ui 03/16303/1
authorshentao <shentao@chinamobile.com>
Thu, 28 Sep 2017 09:05:30 +0000 (17:05 +0800)
committershentao <shentao@chinamobile.com>
Thu, 28 Sep 2017 09:05:39 +0000 (17:05 +0800)
Change-Id: I06c0c47e010d517f7745052dec161d6dbc0069a2
Issue-Id: USECASEUI-47
Signed-off-by: shentao <shentao@chinamobile.com>
pom.xml

diff --git a/pom.xml b/pom.xml
index ad8a33f..ff99452 100644 (file)
--- a/pom.xml
+++ b/pom.xml
             <artifactId>guava</artifactId>
             <version>23.0</version>
         </dependency>
+
+        <!-- UT coverage dependency start -->
+        <dependency>
+            <groupId>org.jmockit</groupId>
+            <artifactId>jmockit</artifactId>
+            <version>1.19</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.12</version>
+        </dependency>
+        <dependency>
+            <groupId>org.jmockit</groupId>
+            <artifactId>jmockit-coverage</artifactId>
+            <version>1.19</version>
+            <scope>test</scope>
+        </dependency>
+        <!-- UT coverage dependency end -->
     </dependencies>
 
     <build>
                 <artifactId>maven-surefire-plugin</artifactId>
                 <version>2.19</version>
                 <configuration>
-                    <skipTests>true</skipTests>
+                    <testFailureIgnore>true</testFailureIgnore>
+                    <includes>
+                        <include>**/*Spec*</include>
+                        <include>**/Test*.java</include>
+                        <include>**/*Test.java</include>
+                        <include>**/*TestCase.java</include>
+                        <include>**/Test*.scala</include>
+                        <include>**/*Test.scala</include>
+                        <include>**/*TestCase.scala</include>
+                    </includes>
                 </configuration>
             </plugin>
         </plugins>