You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building a binary with go build -cover. The emitCounterData is registered on exit which create the coverage file when the program exits successfully.
I think it would be useful to be allowed to call that function (or another one that would register the coverage) when the program is running.
It makes it possible to get the coverage at different time during the code execution. It can also be a way to get the coverage even if the binary does not exit succesfully.
This would also be very convenient for programs that are not made to be stopped, that way you can get the coverage without needing to explicitly stopping the execution of the code.
I think that would something convenient, but let me know what you think about that and if there are any big blocker that I did not anticipate
The text was updated successfully, but these errors were encountered:
Proposal Details
When building a binary with
go build -cover
. The emitCounterData is registered on exit which create the coverage file when the program exits successfully.I think it would be useful to be allowed to call that function (or another one that would register the coverage) when the program is running.
It makes it possible to get the coverage at different time during the code execution. It can also be a way to get the coverage even if the binary does not exit succesfully.
This would also be very convenient for programs that are not made to be stopped, that way you can get the coverage without needing to explicitly stopping the execution of the code.
I think that would something convenient, but let me know what you think about that and if there are any big blocker that I did not anticipate
The text was updated successfully, but these errors were encountered: