Set VM options globally so that no need to set it for each JUnit script


Please help me to figure out how to set global VM options. In Eclipse I could set those in JRE variables under settings and then when run any Junit or TestNG script those options would automatically be consumed. Now, with IntelliJ how same result could be achieved? 

I need to pass mvn parameters for JUnit tests. 

Please help, thanks!


thanks, it worked for me!

In Edit Configuration Templates, added required env variables and then restarted. Now, don't have to specify config in each JUnit runner since all inherit from configuration template!


Please sign in to leave a comment.