change in pom.xml 43/104343/1
authorRupinder <rupinsi1@in.ibm.com>
Wed, 25 Mar 2020 07:33:27 +0000 (13:03 +0530)
committerRupinder <rupinsi1@in.ibm.com>
Wed, 25 Mar 2020 07:33:33 +0000 (13:03 +0530)
Modifcation in pm.xml for displaying sonar coverage

Issue-ID: PORTAL-834
Change-Id: Idccde3555aa75c3667829cfe49260dd40edae1c4
Signed-off-by: Rupinder<rupinsi1@in.ibm.com>
ecomp-sdk/epsdk-app-os/pom.xml

index add3c1a..26c85cd 100644 (file)
@@ -29,7 +29,7 @@
                <jacoco.version>0.7.9</jacoco.version>
                <!-- Version number gets stored only here -->
                <tomcat.download.path>http://archive.apache.org/dist/tomcat/tomcat-8/v8.0.37/bin</tomcat.download.path>
-               <tomcat.download.name>apache-tomcat-8.0.37</tomcat.download.name>
+               <tomcat.download.name>apache-tomcat-8.0.37</tomcat.download.name> 
 
        <sonar.typescript.lcov.reportPaths>ngapp/coverage/lcov.info</sonar.typescript.lcov.reportPaths>
                <sonar.sources>ngapp/src</sonar.sources>
@@ -38,8 +38,9 @@
        <sonar.exclusions>**/node_modules/**,**/*.spec.ts</sonar.exclusions>
        <sonar.test.inclusions>**/*.spec.ts</sonar.test.inclusions>
        <sonar.tests>ngapp/src</sonar.tests>
+        <sonar.scm.exclusions.disabled>true</sonar.scm.exclusions.disabled>
        <sonar.sourceEncoding>UTF-8</sonar.sourceEncoding> 
-
+        <sonar.nodejs.executable>node</sonar.nodejs.executable>
        </properties>
 
        <!-- repositories are inherited from parent -->
                 <configuration>
                                    <nodeVersion>v10.13.0</nodeVersion>
                                        <workingDirectory>${basedir}/ngapp</workingDirectory>
+                                        <installDirectory>${basedir}/ngapp</installDirectory>
                 </configuration>
 
                 <executions>
                             <goal>npm</goal>
                         </goals>
                     </execution>
+                    <execution>
+                        <id>npm run test</id>
+                           <goals>
+                               <goal>npm</goal>
+                           </goals>
+
+                                               <phase>compile</phase>
+
+                                               <configuration>
+                                                       <arguments>run-script test</arguments>
+                                               </configuration>
+                                       </execution>
 
                     
                     <execution>
                </dependency>
 
        </dependencies>
-</project>
+</project>
\ No newline at end of file