IntelliJ - 测试配置。怎么给大家配置一次运行?

IntelliJ - test configuration. How to configure once run for everyone?

我想 运行 在 IntelliJ 中单独测试 JUnit。我需要将特殊配置传递给 运行 他们。每次我想要 运行 新测试时,我都必须创建新的 运行 配置。我需要传递 VM 参数:-Dwebdriver.firefox.bin="C:\Program Files (x86)\Mozilla Firefox_16en\firefox.exe" 以及 Environment variables

我如何一次定义这些配置细节,以及 运行 我想要的特定测试?

If you want to change the default run/debug configuration settings, expand the Defaults node, select the desired configuration type, and modify it as required.

Source

打开Run > Edit Configurations。 Select Defaults > JUnit 在左侧树中并添加您的 VM 参数。这些参数将自动用于每个新的 JUnit 运行 配置。