dapptools icon indicating copy to clipboard operation
dapptools copied to clipboard

Feature request: Generate code coverage summary information similar to solidity-coverage

Open banescusebi opened this issue 4 years ago • 2 comments

At the moment hevm dapp-test --coverage outputs the source code files with some symbols in front of each line, which indicates if those lines were covered or not, or if they can't be covered. However, it does not give an indication of what percentage of instructions were covered or what the branch coverage is.

The percentages mentioned above, which some people find quite useful, are given by solidity-coverage in the form of a table (see attached image) image

If there are more people out there who would like to get that information from this tool, let's make it known to the team. Hopefully they will implement it when/if they find the time for it.

banescusebi avatar Sep 09 '20 18:09 banescusebi

Yes please! I would love to see this. Would also increase adoption of the framework a lot.

lucas-manuel avatar Jul 30 '21 15:07 lucas-manuel

i mentioned this is dappchat but putting here as well for visibility 😅

instead of focusing on just impl'ing this specific chart, probably best to export coverage in a common format (lcov, etc) and then there are all sorts of other tools and sites to display these kind of metrics

transmissions11 avatar Jul 30 '21 15:07 transmissions11