From 8f4fbe7284bfd91a91384c6d769f433d3158d1ef Mon Sep 17 00:00:00 2001 From: Justin Chen Date: Thu, 27 Feb 2020 22:34:07 -0800 Subject: [PATCH] Add solcover.js --- .solcover.js | 10 ++++++++++ package.json | 6 +----- 2 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 .solcover.js diff --git a/.solcover.js b/.solcover.js new file mode 100644 index 0000000..42f87e8 --- /dev/null +++ b/.solcover.js @@ -0,0 +1,10 @@ +module.exports = { + port: 8555, + testrpcOptions: "--db blockchain --networkId 50 --port 8555 --accounts 20 -e 1000000 -m 'concert load couple harbor equip island argue ramp clarify fence smart topic'", + testCommand: "node --max-old-space-size=4096 ../node_modules/.bin/truffle test `find ./transpiled/test/contracts -name '*.spec.js'` --network coverage", + copyPackages: ['openzeppelin-solidity', 'set-protocol-contracts'], + skipFiles: [ + 'Migrations.sol', + 'mocks', + ], +}; diff --git a/package.json b/package.json index b5f60cf..4a6758e 100644 --- a/package.json +++ b/package.json @@ -34,17 +34,13 @@ "lint-ts": "tslint -c tslint.json -p tsconfig.json --fix test/**/*.ts utils/**/*.ts deployments/**/*.ts", "precommit": "lint-staged", "prepare-test": "yarn setup && yarn transpile", - "profile-gas": "yarn prepare-test && truffle test `find transpiled/test/profile -name '*.spec.js'`", "postinstall": "bash scripts/fix-web3-eth-abi.sh", "setup": "yarn clean && yarn deploy-development && yarn generate-typings", "test": "yarn prepare-test && yarn truffle-test-contracts", "test-nocompile": "yarn transpile && yarn truffle-test-contracts", "test-continuous": "yarn deploy-development && yarn test", - "test-integrations": "yarn prepare-test && yarn truffle-test-integrations", - "test-scenarios": "yarn prepare-test && yarn truffle-test-scenarios", "transpile": "tsc", - "truffle-test-integrations": "truffle test `find transpiled/test/integrations -name '*.spec.js'`", - "truffle-test-contracts": "truffle test `find transpiled/test/viewer -name '*.spec.js'`", + "truffle-test-contracts": "truffle test `find transpiled/test/contracts/viewer -name '*.spec.js'`", "prepublishOnly": "yarn dist", "flatten": "truffle-flattener contracts/managers/SocialTradingManager.sol" },