[go-nuts] Re: Issue with integration test coverage

2024-11-07 Thread Chittoor Murari
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

[go-nuts] Re: Issue with integration test coverage

2023-07-12 Thread savita juyal
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

[go-nuts] Re: Issue with integration test coverage

2023-07-11 Thread Brian Candler
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