aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sra-report
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sra-report')
-rw-r--r--packages/sra-report/coverage/.gitkeep0
-rw-r--r--packages/sra-report/package.json6
-rw-r--r--packages/sra-report/test/postman_collection_v0_test.ts1
-rw-r--r--packages/sra-report/test/test_runner.ts1
4 files changed, 5 insertions, 3 deletions
diff --git a/packages/sra-report/coverage/.gitkeep b/packages/sra-report/coverage/.gitkeep
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/packages/sra-report/coverage/.gitkeep
diff --git a/packages/sra-report/package.json b/packages/sra-report/package.json
index 379b8cb1e..5bc9aea8d 100644
--- a/packages/sra-report/package.json
+++ b/packages/sra-report/package.json
@@ -12,11 +12,14 @@
"clean": "shx rm -rf lib scripts",
"build": "tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
"lint": "tslint --project .",
+ "test:circleci": "yarn test:coverage",
+ "test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
+ "coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
"test": "run-s copy_test_environments copy_test_fixtures run_mocha",
"rebuild_and_test": "run-s clean build test",
"copy_test_fixtures": "copyfiles -u 2 './test/fixtures/**/*.json' ./lib/test/fixtures",
"copy_test_environments": "copyfiles -u 2 './test/environments/**/*.json' ./lib/test/environments",
- "run_mocha": "mocha --require source-map-support/register lib/test/**/*_test.js --exit",
+ "run_mocha": "mocha --require source-map-support/register --require make-promises-safe lib/test/**/*_test.js --exit",
"manual:postpublish": "yarn build; node ./scripts/postpublish.js"
},
"bin": {
@@ -60,6 +63,7 @@
"mocha": "^4.0.1",
"nock": "^9.2.3",
"npm-run-all": "^4.1.2",
+ "nyc": "^11.0.1",
"shx": "^0.2.2",
"tslint": "5.8.0",
"typescript": "2.7.1"
diff --git a/packages/sra-report/test/postman_collection_v0_test.ts b/packages/sra-report/test/postman_collection_v0_test.ts
index 5a2fc2520..dfb16b10d 100644
--- a/packages/sra-report/test/postman_collection_v0_test.ts
+++ b/packages/sra-report/test/postman_collection_v0_test.ts
@@ -1,4 +1,3 @@
-import 'make-promises-safe';
import 'mocha';
import * as nock from 'nock';
diff --git a/packages/sra-report/test/test_runner.ts b/packages/sra-report/test/test_runner.ts
index 210eb7932..8094018f2 100644
--- a/packages/sra-report/test/test_runner.ts
+++ b/packages/sra-report/test/test_runner.ts
@@ -2,7 +2,6 @@ import * as chai from 'chai';
import * as chaiAsPromised from 'chai-as-promised';
import * as dirtyChai from 'dirty-chai';
import * as _ from 'lodash';
-import 'make-promises-safe';
import 'mocha';
import {
NewmanRunExecution,