Exclude tests from sonar coverage in apex-editor 72/127172/1
authordanielhanrahan <daniel.hanrahan@est.tech>
Thu, 17 Feb 2022 11:16:19 +0000 (11:16 +0000)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Thu, 17 Feb 2022 11:16:19 +0000 (11:16 +0000)
Exclude all *.test.js files from sonar coverage.

Issue-ID: POLICY-3896
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ic0ad8e58c1b079a6beeb10b4b4c02b604d280204

gui-editors/gui-editor-apex/pom.xml

index e42777e..760cd8d 100644 (file)
@@ -40,7 +40,7 @@
         <webapp.dir>${project.basedir}/src/main/webapp</webapp.dir>
         <sonar.nodejs.executable>${webapp.dir}/node/node</sonar.nodejs.executable>
         <sonar.sources>${project.basedir}/src/main/java,${webapp.dir}/js</sonar.sources>
-        <sonar.exclusions>${webapp.dir}/js/__test__/**</sonar.exclusions>
+        <sonar.exclusions>**/*.test.js</sonar.exclusions>
     </properties>
 
     <dependencies>