I have default configurations such as VM arguments (-Xms512m -Xmx1024m -XX:MaxPermSize=256M) as well as class path folders to run the all the JUNIT
test cases.
Currently in eclipse i’m always creating the same/duplicate configuration for each test case else the test cases were failed.
Is there is a way to configure the above as default for all JUNIT test cases to avoid creating a duplicate of existing test case and renaming the test case name?
The reason is whenever i need to run a new test case i need to do the above operations. If there is a way then the Junit test cases will automatically picks the default configuration and the test case will run automatically.
You can set default VM arguments in the eclipse preferences which will be used for every run configuration, so you don’t even have to set them for your application:
Window->Preferences->Java->Installed JRE-> Select your active JRE and clickEdit. Put your arguments forDefault VM Arguments.