diff --git a/.travis.yml b/.travis.yml index 00fae46fd3..d2afc09ef8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,8 @@ before_install: - sh -e /etc/init.d/xvfb start script: - - npm test + - npm test-coverage + - ./node_modules/.bin/codecov after_success: - ./node_modules/.bin/codecov -f coverage/coverage-final.json diff --git a/package.json b/package.json index 8ac829346c..1076fb4f3a 100644 --- a/package.json +++ b/package.json @@ -16,9 +16,10 @@ "postflow.publish": "npm run demo", "build": "ngm build -p src", "start": "ng serve", - "pretest": "run-s build link", "generate-bs4": "node scripts/generate-bs4.js", - "test": "ng test --watch false", + "pretest": "run-s build link", + "test": "ng test -sr", + "test-coverage": "ng test -sr -cc", "preversion": "npm test", "wm-update": "webdriver-manager update", "pree2e": "run-s wm-update build link",