diff --git a/sdk/core/core-arm/package.json b/sdk/core/core-arm/package.json index ea02c0cba460..da8012e33daa 100644 --- a/sdk/core/core-arm/package.json +++ b/sdk/core/core-arm/package.json @@ -87,7 +87,9 @@ "test": "npm run build && npm run unit-test && npm run integration-test", "unit-test": "npm run unit-test:node && npm run unit-test:browser", "unit-test:browser": "echo skipped", - "unit-test:node": "nyc mocha --require ts-node/register --timeout 50000 --reporter ../../../common/tools/mocha-multi-reporter.js --colors \"test/**/*.ts\"", + "unit-test:node": "mocha --require ts-node/register --timeout 50000 --reporter ../../../common/tools/mocha-multi-reporter.js --colors \"test/**/*.ts\"", + "cover:unit:node": "nyc npm run unit-test:node", + "cover:report": "nyc report --reporter=lcov --reporter=text", "pack": "npm pack 2>&1", "prebuild": "npm run clean" }, diff --git a/sdk/core/core-http/package.json b/sdk/core/core-http/package.json index d9c40b821433..fdb7cc93067c 100644 --- a/sdk/core/core-http/package.json +++ b/sdk/core/core-http/package.json @@ -91,7 +91,9 @@ "test": "npm run build:test && npm run unit-test && npm run integration-test", "unit-test": "npm run unit-test:node && npm run unit-test:browser", "unit-test:browser": "node ./node_modules/karma/bin/karma start karma.conf.ts --browsers ChromeNoSecurity --single-run", - "unit-test:node": "cross-env TS_NODE_FILES=true nyc mocha --require ts-node/register --timeout 50000 --reporter ../../../common/tools/mocha-multi-reporter.js --colors --exclude \"test/**/*.browser.ts\" \"test/**/*.ts\"", + "unit-test:node": "cross-env TS_NODE_FILES=true mocha --require ts-node/register --timeout 50000 --reporter ../../../common/tools/mocha-multi-reporter.js --colors --exclude \"test/**/*.browser.ts\" \"test/**/*.ts\"", + "cover:unit:node": "nyc npm run unit-test:node", + "cover:report": "nyc report --reporter=lcov --reporter=text", "check:packagejsonversion": "ts-node ./.scripts/checkPackageJsonVersion.ts", "check:foronlycalls": "ts-node ./.scripts/checkForOnlyCalls.ts", "check:everything": "ts-node ./.scripts/checkEverything.ts",