diff --git a/.solcover.js b/.solcover.js index 75c1eeb0d7..d926781aa2 100644 --- a/.solcover.js +++ b/.solcover.js @@ -2,10 +2,10 @@ module.exports = { skipFiles: [ 'Migrations.sol', 'EtherRouter.sol', - 'ERC20ExtendedToken.sol', - 'PatriciaTree' + 'PatriciaTree', + 'ERC20ExtendedToken.sol' ], - compileCommand: '../node_modules/.bin/truffle compile', - testCommand: '../node_modules/.bin/truffle test --network coverage', + compileCommand: 'yarn run provision:token:contracts:compile', + testCommand: '../node_modules/.bin/truffle test --network coverage --compile-all', testrpcOptions: `--port 8555 -i 1999 --acctKeys="./coverageEnv/ganache-accounts.json" --noVMErrorsOnRPCResponse --accounts 12` }; diff --git a/package.json b/package.json index 582cd06442..aa3272156e 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "clean:test:contracts": "rimraf ./contracts/*Updated*.*", "clean:contracts": "rimraf ./build/contracts/*", "provision:token:contracts": "bash ./scripts/provision-token-contracts.sh", + "provision:token:contracts:compile": "truffle compile && bash ./scripts/provision-token-contracts.sh", "start:blockchain:client": "bash ./scripts/start-blockchain-client.sh", "stop:blockchain:client": "bash ./scripts/stop-blockchain-client.sh", "test:contracts": "npm run start:blockchain:client & truffle migrate --reset --compile-all && truffle test --network development",