From 65261a67409124122d3678e1fa292d51a5052f1c Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 4 Sep 2020 12:10:45 +0200 Subject: [PATCH] coverage commands for both test runs --- .travis.yml | 4 ++-- package.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7475809f..9282a86b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,8 +27,8 @@ before_script: script: - npm run lint - npm run build - - npm run test:cover - - npm run test:integration + - npm run test:unit:cover + - npm run test:integration:cover notifications: email: false diff --git a/package.json b/package.json index 9733091f..f7a57e4a 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,9 @@ "changelog": "auto-changelog -p", "prepublishOnly": "npm run build", "test:unit": "mocha --config=test/unit/.mocharc.json --node-env=test --exit 'test/unit/**/*.test.ts'", + "test:unit:cover": "nyc --report-dir coverage/unit npm run test:unit", "test:integration": "mocha --config=test/integration/.mocharc.json --node-env=test --exit 'test/integration/**/*.test.ts'", - "test:cover": "nyc --report-dir coverage/unit npm run test:unit" + "test:integration:cover": "nyc --report-dir coverage/integration npm run test:integration" }, "repository": { "type": "git",