aragonOS
aragonOS copied to clipboard
Testing improvements
Following the request on the "good first issue" https://github.com/aragon/aragonOS/issues/514, I am extending the tests covering the following items:
- [x] Explicitly test AppProxyFactory. newAppProxyPinned(IKernel, bytes32)
- [x] Explicitly test EVMScriptRunner.protectState modifier
- [x] Test view methods of SafeERC20.sol
NOTE: This PR is a WIP until further questions are resolved.
Thanks for opening this pull request! Someone will review it soon 🔍
Coverage increased (+0.9%) to 100.0% when pulling 6d84a85fce3e30c554290aaaa05969ced62b2480 on dapplion:514_testing_improvements into 0fd1ff673e160597b0cbabc1956a2a547b1c41f0 on aragon:next.
@sohkai The Travis build on my fork's branch completes the coverage step successfully https://travis-ci.com/dapplion/aragonOS/builds/125316450. However, on your repo it doesn't, where it errors with:
Writing artifacts to ./build/contracts
Instrumenting ./coverageEnv/contracts/acl/ACL.sol
Skipping instrumentation of ./coverageEnv/contracts/acl/ACLSyntaxSugar.sol
Instrumenting ./coverageEnv/contracts/acl/IACL.sol
Cleaning up...
There was a problem instrumenting ./coverageEnv/contracts/acl/IACL.sol: TypeError: Cannot read property 'stop' of null
Exiting without generating coverage...
npm ERR! code ELIFECYCLE
Do you have any clue on what might be the issue? With this last commit, coverage gets to 100.00% :)
@cgewecke helped solve the problem and now of CI tasks complete successfully