When I run/debug Ginkgo
test from Intellij Idea (with Go plugin installed), it does not shut down gracefully if I press "Stop" button.
JustBeforeEach
and AfterEach
functions do not get executed and process stops immediately. When I run test from console it gracefully shuts down if I press Ctrl+C
. How can I make Intellij Idea/Goland to send custom signal in order to stop running process?
My gotest
options are: -ginkgo.v -ginkgo.progress -ginkgo.trace -ginkgo.focus=MyTest
GoLand sends a SIGINT then follows with a SIGKILL to terminate the process. You should make your application handle either of those signals before exiting.