|
|
|
|
|
by thiht
1227 days ago
|
|
Note that it was already possible before with a command like: go test -coverpkg=./... -c . -o main.test
This command builds a test binary with a coverage config. So if you run it, launch your tests, and stop it gracefully, it will spit out a coverage report.I’m not exactly sure what the change in Go 1.20 is about, maybe it’s easier somehow, I’ll have to try it. |
|