You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ra...@apache.org on 2019/11/11 12:38:21 UTC

[cordova-common] branch master updated: test: always run code coverage during `npm test` (#107)

This is an automated email from the ASF dual-hosted git repository.

raphinesse pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-common.git


The following commit(s) were added to refs/heads/master by this push:
     new 8aa0760  test: always run code coverage during `npm test` (#107)
8aa0760 is described below

commit 8aa0760fbb8f8984f20bd2f76301d1f830d130e5
Author: Raphael von der GrĂ¼n <ra...@gmail.com>
AuthorDate: Mon Nov 11 13:38:15 2019 +0100

    test: always run code coverage during `npm test` (#107)
---
 .travis.yml  | 1 -
 package.json | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 3f32cbe..7a8f10e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,7 +13,6 @@ install:
 
 script:
   - npm test
-  - npm run cover
 
 after_success:
   - npx codecov
diff --git a/package.json b/package.json
index c937291..69ea020 100644
--- a/package.json
+++ b/package.json
@@ -17,7 +17,7 @@
     "node": ">=10.0.0"
   },
   "scripts": {
-    "test": "npm run eslint && npm run test:unit",
+    "test": "npm run eslint && npm run cover",
     "test:unit": "jasmine \"spec/**/*.spec.js\"",
     "eslint": "eslint src spec",
     "cover": "nyc npm run test:unit"


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org