Closed mariocao closed 4 years ago
This PR fixes the solidity coverage tests.
Problem:
solidity-coverage
javascript heap out of memory
Workaround:
secp256k1
Notes:
ganache-cli
test.sh
ganache-cli-coverage
--emitFreeLogs true --allowUnlimitedContractSize true --gasLimit 0xfffffffffffff --port <port>" > /dev/null &
This PR fixes the solidity coverage tests.
Problem:
solidity-coverage
were too big.javascript heap out of memory
.Workaround:
secp256k1
curve is tested.Notes:
solidity-coverage
documentation provides some complex project examples that use their library, e.g. (OpenZeppelin Contracts)[https://github.com/OpenZeppelin/openzeppelin-contracts].solidity-coverage
as follows:ganache-cli
(ganache-cli-coverage)[https://github.com/frangio/ganache-cli/releases/download/v6.4.1-coverage/ganache-cli-coverage-6.4.1.tgz].test.sh
bash scripts to handle the ganache lifecycle, callinng the aforementionedganache-cli-coverage
with the following arguments:--emitFreeLogs true --allowUnlimitedContractSize true --gasLimit 0xfffffffffffff --port <port>" > /dev/null &
.