ape icon indicating copy to clipboard operation
ape copied to clipboard

Testing: Test coverage w/ code-cov support

Open NotPeopling2day opened this issue 3 years ago • 1 comments

Overview

Add test coverage with code-cov support https://medium.com/coinmonks/brownie-evaluating-solidity-code-coverage-via-opcode-tracing-a7cf5a92d28c

Specification

    def get_coverage(self):
        """
        """

        calltree = self._calltree(show_internal=True)
        # TODO: test coverage logic
        # {Source: {Line: NumberOfHits}}
        return calltree

https://github.com/eth-brownie/brownie/blob/master/brownie/test/coverage.py

Dependencies

NotPeopling2day avatar Dec 21 '21 18:12 NotPeopling2day

https://coverage.readthedocs.io/en/latest/api_plugin.html#file-tracers

fubuloubu avatar Apr 04 '22 13:04 fubuloubu