goland coverage result is different to go tool cover

Hi,

goland version : 2018.1

im running goland coverage, right click - run with coverage - go test, it shows only 1 package coverage instead of the whole package on project

a little bit different when running with both command, "go test -covermode=atomic -coverpkg ./... ./... -coverprofile=coverage.out" and "go tool cover -html=coverage.out", where i can see that the whole package is covered

my question is, why goland gives different result, and how can i fix goland coverage tools so it shows the same result as go tool cover?

 

thank you

0
2 comments

Hi,

> my question is, why goland gives different result

It might be a bug.

> and how can i fix goland coverage tools so it shows the same result as go tool cover?

Start with upgrading GoLand. If the issue persists in GoLand 2018.3, file a bug report with code samples to recreate the issue at https://youtrack.jetbrains.com.

0
Avatar
Permanently deleted user

hi Alexander,

issue still happens on Goland 2018.3

will open ticket on youtrack

 

thank you

0

Please sign in to leave a comment.