JoinColony / solcover

Code coverage for solidity
MIT License
64 stars 8 forks source link

Draft changes for runCoveredTests.js #18

Closed cgewecke closed 7 years ago

cgewecke commented 7 years ago

This PR addresses the "stop modifying original contracts" TODO and makes some changes to the way testrpc is launched so that:

The PR's main change to master is that it creates a 'copy' truffle project to instrument in a disposable directory and runs truffle in that context with a truffle.js configured for solcover. Master currently uses the host truffle scaffolding to house instrumented copies of the target contracts, restoring originals after coverage has been generated.

As a mea culpa - I really meant this to be a couple of small things and not involve so many changes - they just piled up. Perfectly happy to let it sit here as a draft for discussion or as a source for ideas indefinitely.

cgewecke commented 7 years ago

@area I have pushed some changes here and just updated the original PR description to current status.

cgewecke commented 7 years ago

@area Thanks for #22 and #23 - they fixed tests for this.

cgewecke commented 7 years ago

Closing. Ancient.