by jacksgt · 3y ago · 0 comments
This is absolutely awesome! I'm looking forward to trying this on some server binaries!
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.