IntelliJ: how do you override VM options for a single test?

I want to run a single test method in a test class. Running “Modify Configuration” (screenshot below), there is no option to override a system property. It is possible to override environment variables (System.getenv) but that is not the same.

enter image description here


VM options are in the third field where you currently see -ea. You can add your own VM options there.

Leave a Reply

Your email address will not be published. Required fields are marked *