Skip to content
Advertisement

Eclipse – passing VM parameter to every test in the project

I need to pass a VM parameter to every test that is run in the project. Setting this manually doesn’t seem to be the most convenient solution, so is there any possibility to pass the parameter to every test automatically.

Thank you for help.

Advertisement

Answer

We change the JRE Configuration in Eclipse (Preferences>Java>Installed JREs). There you can set default VM Arguments which are used for anything you run with that JRE.

Now simply configure your project to use this JRE (Java Build Path) and you should be on the right way.

Edit JRE - Eclipse

3 People found this is helpful
Advertisement