gobco icon indicating copy to clipboard operation
gobco copied to clipboard

How to get the branch coverage from the parent package of test.go file

Open BattleBird opened this issue 5 years ago • 1 comments

Hello,

For example, my test file in the vm/runtime/ package, but I want to get the branch coverage of /vm/... package using the following command:

go test -cover -coverpkg ../../vm/... -toolexec 'gobco-tool'

it cause the trackback /tmp/go-build132769910/b052/analysis.cover.go:3:8: can't find import: "github.com/junhwi/gobco" gobco: exit status 2 FAIL github.com/ethereum/go-ethereum/core/vm/runtime [build failed]

How can I solve the problem? Thanks in advance

BattleBird avatar Apr 15 '20 10:04 BattleBird

any updates here ?

ShriprasadM avatar Nov 15 '21 10:11 ShriprasadM