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!
请先登录再写评论。
Please see https://stackoverflow.com/a/69410668/104891.
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!