aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-22 18:50:52 +0800
committerFabio Berger <me@fabioberger.com>2018-06-22 18:50:52 +0800
commit98570b5da1b955355096b0d0a21aaeabce5fe516 (patch)
tree11793b657397ea763522cbe58252e2ad878be5e6
parente923d7dafb24bdbf13c212609e4b1afc38d8a6e2 (diff)
downloaddexon-sol-tools-98570b5da1b955355096b0d0a21aaeabce5fe516.tar
dexon-sol-tools-98570b5da1b955355096b0d0a21aaeabce5fe516.tar.gz
dexon-sol-tools-98570b5da1b955355096b0d0a21aaeabce5fe516.tar.bz2
dexon-sol-tools-98570b5da1b955355096b0d0a21aaeabce5fe516.tar.lz
dexon-sol-tools-98570b5da1b955355096b0d0a21aaeabce5fe516.tar.xz
dexon-sol-tools-98570b5da1b955355096b0d0a21aaeabce5fe516.tar.zst
dexon-sol-tools-98570b5da1b955355096b0d0a21aaeabce5fe516.zip
Add coverage and test:circleci command to sra-report
-rw-r--r--packages/sra-report/coverage/.gitkeep0
-rw-r--r--packages/sra-report/package.json4
2 files changed, 4 insertions, 0 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 b3590935f..5bc9aea8d 100644
--- a/packages/sra-report/package.json
+++ b/packages/sra-report/package.json
@@ -12,6 +12,9 @@
"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",
@@ -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"