Running Java tests with --add-opens= jvm option in Intellij idea with the green play button - Stack Overflow

Given tests that need an -add-opens= jvm option.Can the JVM option be set somewhere in Intellij IDEA s

Given tests that need an -add-opens= jvm option. Can the JVM option be set somewhere in Intellij IDEA so it will be present when running an individual test with the green play button without delegating the tests to a build tool?

Given tests that need an -add-opens= jvm option. Can the JVM option be set somewhere in Intellij IDEA so it will be present when running an individual test with the green play button without delegating the tests to a build tool?

Share Improve this question asked Nov 19, 2024 at 12:23 Erez Ben HarushErez Ben Harush 86710 silver badges28 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

It seems you want that option set for any test that you run.

To do that, open the Run/Debug Configurations window (select Edit Configurations from the drop down), click on Edit configuration templates, then add the option to the appropriate kind of configuration (JUnit, TestNG, or whatever is used to run the tests).

New test runs will use the option, but existing configurations will not be changed.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745562402a4633185.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信