aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIdan Amit <ia096e@intl.att.com>2018-08-19 18:46:25 +0300
committerIdan Amit <ia096e@intl.att.com>2018-08-19 18:46:25 +0300
commit93f323a1d6ee5f700aaef5c347639a9c0de9253e (patch)
tree115c6089e03297ddd549c20d66990646b802c1e0
parent297b0994d648ab2ad9f1cf905ae291ab77c7bcfd (diff)
Added tests to sdc-pubsub
Changed sonar parameters to integrate with sonarTS plugin Change-Id: I2e725632e0964d76aa397938f34ab07bbd67d5f0 Issue-ID: SDC-1542 Signed-off-by: Idan Amit <ia096e@intl.att.com>
-rw-r--r--.gitignore1
-rw-r--r--.npmignore1
-rw-r--r--jest.config.js4
-rw-r--r--pom.xml13
4 files changed, 9 insertions, 10 deletions
diff --git a/.gitignore b/.gitignore
index 3db6931..67b1132 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,4 @@ sdc-pubsub.iml
node/
!/jest.config.js
/coverage/
+/target/
diff --git a/.npmignore b/.npmignore
index f72406b..3ff9fe3 100644
--- a/.npmignore
+++ b/.npmignore
@@ -16,3 +16,4 @@ node/
pom.xml
/coverage/
/jest.config.js
+/target/
diff --git a/jest.config.js b/jest.config.js
index f4b1f87..3cf55c2 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -8,11 +8,7 @@ module.exports = {
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.ts?$",
"moduleFileExtensions": [
"ts",
- "tsx",
"js",
- "jsx",
- "json",
- "node"
],
"testURL": "http://localhost/",
"coverageDirectory": "<rootDir>/coverage",
diff --git a/pom.xml b/pom.xml
index 55fca90..cf2dcfb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,12 +12,13 @@
<nexus.proxy>https://nexus.onap.org</nexus.proxy>
<staging.profile.id>176c31dfe190a</staging.profile.id>
- <sonar.typescript.node>${basedir}/node</sonar.typescript.node>
- <sonar.sources>${basedir}/lib</sonar.sources>
- <sonar.tests>${basedir}/lib</sonar.tests>
- <sonar.test.inclusions>${basedir}/lib/*.spec.ts</sonar.test.inclusions>
- <sonar.typescript.lcov.reportPaths>${basedir}/coverage/lcov.info</sonar.typescript.lcov.reportPaths>
- <sonar.testExecutionReportPaths>${basedir}/coverage/test-report.xml</sonar.testExecutionReportPaths>
+ <sonar.typescript.node>node</sonar.typescript.node>
+ <sonar.sources>lib</sonar.sources>
+ <sonar.inclusions>lib/*.ts</sonar.inclusions>
+ <sonar.tests>lib</sonar.tests>
+ <sonar.test.inclusions>lib/*.spec.ts</sonar.test.inclusions>
+ <sonar.typescript.lcov.reportPaths>coverage/lcov.info</sonar.typescript.lcov.reportPaths>
+ <sonar.testExecutionReportPaths>coverage/test-report.xml</sonar.testExecutionReportPaths>
</properties>
<build>