Commit 59254871 by cgewecke

Add solidity-coverage

parent 726593c0
......@@ -3,3 +3,5 @@
node_modules/
build/
.DS_Store/
/coverage
coverage.json
\ No newline at end of file
......@@ -6,7 +6,8 @@
"scripts": {
"test": "scripts/test.sh",
"console": "truffle console",
"install": "scripts/install.sh"
"install": "scripts/install.sh",
"coverage": "scripts/coverage.sh"
},
"repository": {
"type": "git",
......@@ -35,6 +36,7 @@
"babel-preset-stage-3": "^6.17.0",
"babel-register": "^6.23.0",
"ethereumjs-testrpc": "^3.0.2",
"solidity-coverage": "^0.1.0",
"truffle": "https://github.com/ConsenSys/truffle.git#3.1.9"
}
}
#! /bin/bash
SOLIDITY_COVERAGE=true ./node_modules/.bin/solidity-coverage
require('babel-register');
require('babel-polyfill');
var provider;
var HDWalletProvider = require('truffle-hdwallet-provider');
var mnemonic = '[REDACTED]';
var provider = new HDWalletProvider(mnemonic, 'https://ropsten.infura.io/');
if (!process.env.SOLIDITY_COVERAGE){
provider = new HDWalletProvider(mnemonic, 'https://ropsten.infura.io/')
}
module.exports = {
......@@ -17,6 +20,13 @@ module.exports = {
ropsten: {
provider: provider,
network_id: 3 // official id of the ropsten network
},
coverage: {
host: "localhost",
network_id: "*",
port: 8555,
gas: 0xfffffffffff,
gasPrice: 0x01
}
}
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment