Can anybody tell me how to fork the jvm when running JUnit test from Idea? I have garbage that leaves a connection to a database unclosed. This is no problem in the app I'm developing, it is no problem when running my ant script to build and test the app, but it is a problem when running my test suits from Idea.
I'm guessing that the field "Test runner parameters" could be used, but I can't find any documentation telling me how to do this.
My ant task looks something like this:
<batchtest fork="yes" todir="$">
And I want more or less the same behavior when running from Idea. Any suggestions? Or is it impossible?