Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'solidity-coverage' node command to the project #116

Closed
wants to merge 3 commits into from

Conversation

forshtat
Copy link
Member

Current 'solidity-coverage' does not support solidity 0.5.0 and up, so
it relies on patcking the 'parser.js' file in the meantime.

Also, the "instrumented" version of the RelayHub contract is too large,
so we need to add a large gas limit to it's migration sctipt, as well as
run the ganache for coverage with the "allowUnlimitedContractSize" flag.

Note: need to fix "skipFiles" behavior as it does not seem to work.
Note 2: Many tests fail in coverage mode, which must be related to a
change in the number of logs/amounts of gas consumed, etc. Needs fixing.

Current 'solidity-coverage' does not support solidity 0.5.0 and up, so
it relies on patcking the 'parser.js' file in the meantime.

Also, the "instrumented" version of the RelayHub contract is too large,
so we need to add a large gas limit to it's migration sctipt, as well as
run the ganache for coverage with the "allowUnlimitedContractSize" flag.

Note: need to fix "skipFiles" behavior as it does not seem to work.
Note 2: Many tests fail in coverage mode, which must be related to a
change in the number of logs/amounts of gas consumed, etc. Needs fixing.
Dror Tirosh added 2 commits May 30, 2019 15:21
solcover patches the code in the coverageEnv folder, just for coverage
tests, so that "npm test" will work normally.
@drortirosh
Copy link
Member

@alex-forshtat-tbk : I think we should close this one. solidity-coverage is too problematic: by requiring modifying the contracts, it breaks our tests, which are gas-dependent.
sol-coverage seems much less intrusive coverage test (even though that currently it can only run the unit-tests, and not the actual relay, since it runs the node in-process, and fails to process well connetions from another process (the "go" relay)

@drortirosh
Copy link
Member

not used: too much code modification and gas manipulation (and thus breaking tests). used sol-coverage instead.

@drortirosh drortirosh closed this Jun 11, 2019
@drortirosh drortirosh deleted the solidity-coverage branch December 5, 2019 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants