Reputation: 299
I have a collection of unit tests, using single tones, so each test effects the other (unwanted behavior). Can I run each test in its own JVM instance (fork=yes) using intellij 12 junit plugin?
Upvotes: 2
Views: 1891
Reputation: 1673
I believe what your after is in Run/Debug Configurations.
Run --> Edit Configuration --> Defaults --> JUnit
in the top right of the configuration tab there is Fork Mode
On the defaults this can be changed to none
or method
, if you select a particular run configuration you can set to class
as well
Upvotes: 3