diff options
author | andre.schmid <andre.schmid@est.tech> | 2020-03-06 14:42:45 +0000 |
---|---|---|
committer | Ofir Sonsino <ofir.sonsino@intl.att.com> | 2020-04-27 08:01:07 +0000 |
commit | 4a4d45fadfbb61e8e147f2b62e5dab5ac55403e8 (patch) | |
tree | 1e58f398d370ddcbb249f3a8fdc6659f2e3041bb /catalog-ui/pom.xml | |
parent | bebff57a6a661825d26a17813fe4a3230ac6f9db (diff) |
Enabling JS in SonarCloud
Configures jest test coverage and missing sonar
properties for javascript file scan and report.
Change-Id: I9170a176cc4e580ac14f669c334ee949942503f6
Issue-ID: SDC-2741
Signed-off-by: andre.schmid <andre.schmid@est.tech>
Diffstat (limited to 'catalog-ui/pom.xml')
-rw-r--r-- | catalog-ui/pom.xml | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/catalog-ui/pom.xml b/catalog-ui/pom.xml index f08fb64276..f8d4e3f70c 100644 --- a/catalog-ui/pom.xml +++ b/catalog-ui/pom.xml @@ -13,6 +13,11 @@ <version>1.7.0-SNAPSHOT</version> </parent> + <properties> + <sonar.nodejs.executable>${project.basedir}/node/node</sonar.nodejs.executable> + <sonar.sources>src/app/ng2</sonar.sources> + </properties> + <build> <plugins> <plugin> @@ -26,7 +31,6 @@ <goal>clean</goal> </goals> <configuration> - <filesets> <fileset> <directory>${project.parent.basedir}/catalog-fe/src/main/webapp</directory> @@ -72,7 +76,7 @@ <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> <configuration> - <installDirectory>${project.parent.basedir}</installDirectory> + <installDirectory>${project.basedir}</installDirectory> </configuration> <executions> @@ -118,6 +122,18 @@ <arguments>run build:prod</arguments> </configuration> </execution> + + <execution> + <id>npm_test</id> + <goals> + <goal>npm</goal> + </goals> + <phase>test</phase> + <configuration> + <arguments>test</arguments> + <skip>${skipTests}</skip> + </configuration> + </execution> </executions> </plugin> <plugin> |