Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include jvm.test.junit.options into test configurations VM options #435

Open
wisechengyi opened this issue Nov 20, 2019 · 0 comments
Open

Comments

@wisechengyi
Copy link
Collaborator

Problem

Currently IntelliJ test configuration does not respect jvm options set up for test.junit configured in pants.ini

$ ./pants options | grep jvm.test.junit.options
jvm.test.junit.options = ['-Djava.awt.headless=true', '-Djava.net.preferIPv4Stack=true', '-Xmx2g', '-XX:MaxMetaspaceSize=512m'] (from CONFIG in pants.ini)

So when we create the run configurations, we should automatically add it, around https://github.com/pantsbuild/intellij-pants-plugin/blob/master/src/com/twitter/intellij/pants/components/impl/PantsProjectComponentImpl.java#L188

Interface to access pants options:
https://github.com/pantsbuild/intellij-pants-plugin/blob/master/common/com/twitter/intellij/pants/model/PantsOptions.java#L46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant