简体   繁体   中英

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.

在此处输入图像描述

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM