I am relatively new to Ant and JUnit.
From reading the Ant manual and searching on Google and SO, I understand how to fork into a separate VM when running Junit tests, but not why this is a good or bad practice.
So far, I have found these answers:
<jvmarg> [EDIT]Is that all there is to it?
When you run your unit tests with a forked VM, you can pass new arguments to it. For example, you may need more memory for running your tests than for compiling, you might want to run your tests in a different directory, or maybe pass different java parameters to the new VM. If you look in the Ant manual for the junit task, you can see many of the parameters are ignored if you're not in fork mode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With