File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,11 @@ MyContract.deployed().then(instance => {
116116 })
117117});
118118```
119+ ** Using ` require ` in ` migrations.js ` files** : Truffle overloads Node's ` require ` function but
120+ implements a simplified search algorithm for node_modules packages
121+ ([ see Truffle issue #383 ] ( https://github.com/trufflesuite/truffle/issues/383 ) ).
122+ Because solidity-coverage copies an instrumented version of your project into a temporary folder, ` require `
123+ statements handled by Truffle internally won't resolve correctly.
119124
120125** Using HDWalletProvider in ` truffle.js ` ** : [ See Truffle issue #348 ] ( https://github.com/trufflesuite/truffle/issues/348 ) .
121126HDWalletProvider crashes solidity-coverage, so its constructor shouldn't be invoked while running this tool.
Original file line number Diff line number Diff line change 11machine :
22 node :
33 version : 6.11.0
4+ dependencies :
5+ pre :
6+ - rm -rf node_modules/
47test :
58 override :
69 - npm run test-cov
Original file line number Diff line number Diff line change 4444 "merkle-patricia-tree" : " ~2.1.2" ,
4545 "mocha" : " ^3.1.0" ,
4646 "solc" : " 0.4.8" ,
47- "truffle" : " ^ 3.2.5"
47+ "truffle" : " 3.2.5"
4848 }
4949}
You can’t perform that action at this time.
0 commit comments