From 50707cf656b16c69715ab34984cccb7117cd1fe2 Mon Sep 17 00:00:00 2001 From: Prabakaran Date: Tue, 4 Sep 2018 19:16:08 +0530 Subject: [PATCH] Curisoty - Configured Travis - Coverall - Nyc --- .travis.yml | 2 ++ package.json | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 975819e..3c4ae6b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,6 +33,8 @@ script: - npm run serve - npm run featuretest +after_success: npm run coverage + notifications: email: on_failure: change diff --git a/package.json b/package.json index 8366881..0281bd3 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "jslint": "eslint ./src/client ./src/server ./test/unit ./test/features --fix", "jsonlint": "eslint ./ --ext .json", "csslint": "stylelint ./src/client/**/*.scss --syntax scss --fix", + "coverage": "nyc report --reporter=text-lcov | coveralls", "heroku-postbuild": "npm run prod", "heroku": "npm run serve && pm2 logs" }, @@ -36,6 +37,7 @@ "chai-enzyme": "^1.0.0-beta.1", "chai-http": "^4.0.0", "chromedriver": "^2.41.0", + "coveralls": "^3.0.2", "css-loader": "^1.0.0", "cucumber": "^4.2.1", "cucumber-pretty": "^1.4.4",