diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-16 20:32:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-16 20:32:21 +0800 |
commit | 2acb7676407537b2793f34def0fd384720ad1b0b (patch) | |
tree | 892586ad93cedba8858814e4b37484f6d28d17bf /packages/sol-cov/package.json | |
parent | 0225d34b742072fb846fa2047cb4b0559069dfe8 (diff) | |
parent | a9b1dcb32ab72e7f0f8423bd519f80df12281dbe (diff) | |
download | dexon-sol-tools-2acb7676407537b2793f34def0fd384720ad1b0b.tar dexon-sol-tools-2acb7676407537b2793f34def0fd384720ad1b0b.tar.gz dexon-sol-tools-2acb7676407537b2793f34def0fd384720ad1b0b.tar.bz2 dexon-sol-tools-2acb7676407537b2793f34def0fd384720ad1b0b.tar.lz dexon-sol-tools-2acb7676407537b2793f34def0fd384720ad1b0b.tar.xz dexon-sol-tools-2acb7676407537b2793f34def0fd384720ad1b0b.tar.zst dexon-sol-tools-2acb7676407537b2793f34def0fd384720ad1b0b.zip |
Merge pull request #457 from 0xProject/feature/sol-cov-tests
Add tests for sol-cov
Diffstat (limited to 'packages/sol-cov/package.json')
-rw-r--r-- | packages/sol-cov/package.json | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/packages/sol-cov/package.json b/packages/sol-cov/package.json index 84e58f8d8..f3de566c1 100644 --- a/packages/sol-cov/package.json +++ b/packages/sol-cov/package.json @@ -2,13 +2,18 @@ "name": "@0xproject/sol-cov", "version": "0.0.1", "description": "Generate coverage reports for Solidity code", - "main": "lib/index.js", - "types": "lib/index.d.ts", + "main": "lib/src/index.js", + "types": "lib/src/index.d.ts", "scripts": { "build:watch": "tsc -w", "lint": "tslint --project . 'src/**/*.ts'", + "test": "run-s clean build run_mocha", + "test:coverage": "nyc npm run test --all && yarn coverage:report:lcov", + "coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info", + "test:circleci": "yarn test:coverage", + "run_mocha": "mocha lib/test/**/*_test.js", "clean": "shx rm -rf lib scripts", - "build": "tsc && copyfiles -u 2 './lib/monorepo_scripts/**/*' ./scripts" + "build": "copyfiles 'test/fixtures/**/*' ./lib && tsc && copyfiles -u 2 './lib/monorepo_scripts/**/*' ./scripts" }, "repository": { "type": "git", @@ -37,7 +42,14 @@ "@0xproject/tslint-config": "^0.4.9", "@types/istanbul": "^0.4.29", "@types/node": "^8.0.53", + "@types/mocha": "^2.2.42", + "sinon": "^4.0.0", "copyfiles": "^1.2.0", + "nyc": "^11.0.1", + "chai": "^4.0.1", + "dirty-chai": "^2.0.1", + "chai-typescript-typings": "^0.0.4", + "mocha": "^4.0.1", "npm-run-all": "^4.1.2", "shx": "^0.2.2", "tslint": "5.8.0", |