admin管理员组文章数量:1431426
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 badges1 Answer
Reset to default 0It 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.
版权声明:本文标题:Running Java tests with --add-opens= jvm option in Intellij idea with the green play button - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745562401a2663551.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论