junhwi / gobco

Measuring branch coverage of golang test
27 stars 3 forks source link

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

Open BattleBird opened 4 years ago

BattleBird commented 4 years ago

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

ShriprasadM commented 2 years ago

any updates here ?