aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-05-24 22:31:08 +0800
committerGitHub <noreply@github.com>2017-05-24 22:31:08 +0800
commitaab8d0441caa8767586a347ff0b6a6c8f4771418 (patch)
treea170a12c934cc6e91bbcb8646278369db3426a80
parent27b57da329f2bd0574433301d5d33320a7db155b (diff)
parent36de8cdbd9f56bb5d96dd86b8499805cb24cde7f (diff)
downloaddexon-0x-contracts-aab8d0441caa8767586a347ff0b6a6c8f4771418.tar.gz
dexon-0x-contracts-aab8d0441caa8767586a347ff0b6a6c8f4771418.tar.zst
dexon-0x-contracts-aab8d0441caa8767586a347ff0b6a6c8f4771418.zip
Merge pull request #6 from 0xProject/coverage
Add coverage command
-rw-r--r--circleci.yml3
-rw-r--r--package.json7
2 files changed, 8 insertions, 2 deletions
diff --git a/circleci.yml b/circleci.yml
new file mode 100644
index 000000000..7a97d756c
--- /dev/null
+++ b/circleci.yml
@@ -0,0 +1,3 @@
+test:
+ override:
+ - npm run test:coverage
diff --git a/package.json b/package.json
index 8540e7785..d67890d84 100644
--- a/package.json
+++ b/package.json
@@ -16,7 +16,8 @@
"build:es6": "tsc -m es6 --outDir lib-esm",
"build": "npm run clean && run-p build:*",
"lint": "tslint src/ts/**/*",
- "test": "run-s clean build:commonjs && mocha lib/test/**/*.js"
+ "test": "run-s clean build:commonjs && mocha lib/test/**/*.js",
+ "test:coverage": "nyc npm run test --all"
},
"repository": {
"type": "git",
@@ -33,10 +34,12 @@
"chai": "^3.5.0",
"mocha": "^3.4.1",
"npm-run-all": "^4.0.2",
+ "nyc": "^10.3.2",
"shx": "^0.2.2",
+ "source-map-support": "^0.4.15",
"tslint": "^5.3.2",
"tslint-config-0xproject": "^0.0.2",
"typescript": "^2.3.3",
"webpack": "^2.6.0"
}
-} \ No newline at end of file
+}