You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.
sol-coverage is currently very slow to run: it is required to re-execute each transaction in debug in order to collect coverage data.
Tests that normally takes ~200ms to run nows over 1-2 seconds when collecting coverage data.
While its OK for periodically coverage runs, it prevents from adding the coverage results added to every unit-test running.
Possible Solution
Instead of re-submitting the transcation, a hook can be added into ganache, to report ALL EVM instruction addresses.
This means a normal (test) run is executed, and in parallel, coverage data is collected.
Then, after the run is complete, a single run of the "instanbul" reporting tool will genreate the text/html report.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Expected Behavior
Current Behavior
sol-coverage is currently very slow to run: it is required to re-execute each transaction in debug in order to collect coverage data.
Tests that normally takes ~200ms to run nows over 1-2 seconds when collecting coverage data.
While its OK for periodically coverage runs, it prevents from adding the coverage results added to every unit-test running.
Possible Solution
Instead of re-submitting the transcation, a hook can be added into ganache, to report ALL EVM instruction addresses.
This means a normal (test) run is executed, and in parallel, coverage data is collected.
Then, after the run is complete, a single run of the "instanbul" reporting tool will genreate the text/html report.
The text was updated successfully, but these errors were encountered: