I am facing the same issue.
I have go binary running in a docker container (built using -cover
-covermode=atomic)
I am doing API testing by calling HTTP / grpc endpoints to the service (and
comparing the response - an independent tool is doing this using curl /
grpcurl)
I see that covmeta file
Thank you so much Brian for helping me identify the problem. Now I am using
kill -2 to pass SIGINT to the process, with this program is exiting
politely and we are getting covcounter files.
Regards
Savita Juyal
On Tuesday, July 11, 2023 at 7:18:57 PM UTC+5:30 Brian Candler wrote:
> Why are you
Why are you using kill -9? That doesn't allow the process any time to tidy
up whilst exiting.
But also see https://go.dev/testing/coverage/#FAQ
"If my program panics, will coverage data be written?
Programs built with go build -cover will only write out complete profile
data at the end of exe