What's the command to run test with coverage?


I use Goland integrated run with coverage and see a coverage percentage in project view.


I also use terminal to run test with coverage manually:

1. `go test -coverprofile=cover.out ./...`

2. `go tool cover -func=cover.out` to get the total coverage percentage


However, the coverage of Goland is different to terminal. I wonder what's the actual command the Goland execute? Where I can see?

1 comment
Official comment

Hi. You can see the commands that GoLand runs by expanding the `gosetup` lines at the top of the output, it should look something like below:


Please sign in to leave a comment.