Skip to content
This repository was archived by the owner on Jul 9, 2021. It is now read-only.
This repository was archived by the owner on Jul 9, 2021. It is now read-only.

sol-cov: suggested performance improvement. #1891

@drortirosh

Description

@drortirosh

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions