summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-os
diff options
context:
space:
mode:
authorIndrijeet kumar <indriku1@in.ibm.com>2020-03-23 15:22:10 +0530
committerIndrijeet kumar <indriku1@in.ibm.com>2020-03-23 15:22:20 +0530
commitbd71f49adb681c96fd2517662a08ebd41c7e6e3f (patch)
treec2cefff46e8331b7f5824e342f8b06af5e89ebcf /ecomp-sdk/epsdk-app-os
parent3f72e01ce5c8a3de76ac1e8c60cafed9b37b6948 (diff)
modification in package.json & karma.conf
modification in package.json & karma.conf Issue-ID: PORTAL-813 Change-Id: I7f8be9439b26c4c934336dde049652271b3d904b Signed-off-by: Indrijeet Kumar <indriku1@in.ibm.com>
Diffstat (limited to 'ecomp-sdk/epsdk-app-os')
-rw-r--r--ecomp-sdk/epsdk-app-os/ngappsrc/package.json15
-rw-r--r--ecomp-sdk/epsdk-app-os/ngappsrc/src/karma.conf.js3
2 files changed, 11 insertions, 7 deletions
diff --git a/ecomp-sdk/epsdk-app-os/ngappsrc/package.json b/ecomp-sdk/epsdk-app-os/ngappsrc/package.json
index 00b1b70b..95879586 100644
--- a/ecomp-sdk/epsdk-app-os/ngappsrc/package.json
+++ b/ecomp-sdk/epsdk-app-os/ngappsrc/package.json
@@ -5,9 +5,10 @@
"ng": "ng",
"start": "ng serve --host www.sdk.onap.org --port 8200 --open",
"build": "ng build",
- "test": "ng test",
+ "test": "ng test --watch=false --code-coverage --browsers=ChromeHeadless",
"lint": "ng lint",
- "e2e": "ng e2e"
+ "e2e": "ng e2e",
+ "sonar": "sonar-scanner"
},
"private": true,
"dependencies": {
@@ -34,15 +35,16 @@
"d3-scale": "^3.1.0",
"font-awesome": "^4.7.0",
"ionicons": "^4.6.2",
+ "lodash-es": "^4.17.10",
"ng2-smart-table": "^1.5.0",
"ng6-o2-chart": "^0.4.0",
+ "ngx-cookie-service": "^2.3.0",
+ "portalsdk-tag-lib": "file:portalsdk-tag-lib-0.0.1.tgz",
"rxjs": "~6.3.3",
"rxjs-compat": "^6.5.2",
+ "sonar-scanner": "^3.1.0",
"tslib": "^1.9.0",
- "zone.js": "~0.8.26",
- "lodash-es": "^4.17.10",
- "ngx-cookie-service": "^2.3.0",
- "portalsdk-tag-lib": "file:portalsdk-tag-lib-0.0.1.tgz"
+ "zone.js": "~0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.10.0",
@@ -61,6 +63,7 @@
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.4.0",
+ "puppeteer": "^2.1.1",
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "~3.1.6"
diff --git a/ecomp-sdk/epsdk-app-os/ngappsrc/src/karma.conf.js b/ecomp-sdk/epsdk-app-os/ngappsrc/src/karma.conf.js
index 3006a5b7..a3c65a50 100644
--- a/ecomp-sdk/epsdk-app-os/ngappsrc/src/karma.conf.js
+++ b/ecomp-sdk/epsdk-app-os/ngappsrc/src/karma.conf.js
@@ -1,6 +1,7 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
+process.env.CHROME_BIN = require('puppeteer').executablePath()
module.exports = function (config) {
const defaults = {
basePath: '',
@@ -28,7 +29,7 @@ module.exports = function (config) {
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
- browsers: ['Chrome'],
+ browsers: ['ChromeHeadless'],
singleRun: false,
}