Closed noslav closed 6 years ago
@noslav Thanks for opening, will take a look. At a minimum the contracts need to compile and the tests run correctly before a coverage report can be generated.
There's a another issue reporting this compilation error at #248
thanks for your response @cgewecke, got solcover running with no compilation warnings or errors on the protocol - but was coming across the issue #109 for which the suggested solution helped, thanks for pointing out the fix! 👍
Ok great @noslav - are you getting a report now? If so we will close here and continue to track the stack too deep issue #248.
Also how did the stack too deep resolve itself?
@cgewecke Yes, I was indeed able to generate a nice non-binary report. We can close this issue and track the stack too deep @ #248. I fixed it by removing a require
statement that leads to one failing test overall , using truffle test on the entire repo - not using solcover. Also, while running solcover some of the truffle tests on the contracts fail (causing improper reporting for those respective contracts) so I'm trying to fix those at the moment by checking if the versions of solc, truffle etc being used by solcover are the same as the ones being used in the repo truffle testing. If you've come across something similar kindly let me know. Thanks again!
@noslav solidity-coverage
just uses your Truffle, so there shouldn't be any variance there. The main causes of test failures right now are from . . .
@cgewecke everything works great! Generated very helpful reports - will be integrating it for TravisCI soon, config file setup directions were really helpful!!
Running solcover with the following packages on -
develop
ofhttps://github.com/OpenSTFoundation/openst-protocol.git
name: openst-protocol, version: 0.9.1, description: , devDependencies: { abi-decoder: 1.0.9, assert: 1.4.1, bignumber.js: 4.1.0, ganache-cli: 6.1.0, keccak: 1.4.0, rlp: 2.1.0, solidity-coverage: ^0.5.5, solparse: 2.2.5, truffle: 4.1.8, web3: 1.0.0-beta.33 author: OpenST Foundation Ltd., license: Apache v2.0
results in binary reports - thereby giving unclear directions on test line coverage, kindly point out where the process could be going wrong.
Also one of the errors given during compilation is the following -
~/SimpleToken/openst-protocol/coverageEnv/contracts/OpenSTValue.sol:377:24: CompilerError: Stack too deep, try removing local variables. require(nonces[_redeemer] + 1 == _redeemerNonce);