# Maven。 运行测试

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com.cn/help/idea/llms.txt).

请使用此页面来配置运行 JUnit 测试的设置，使用 [Maven Surefire plugin](http://maven.apache.org/surefire/maven-surefire-plugin/index.html) 配置。

默认情况下，配置参数已激活。 有关更多信息，请参见 [Maven 测试](work-with-tests-in-maven.html)。

您可以将这些设置用于 Maven 3 版本及更高版本。

|  条目  |  描述  |
| --- | --- |
|   `argLine`   |  选中此复选框以在命令行上设置任意 JVM 选项。  |
|   `systemPropertyVariables`   |  选中此复选框以将系统属性列表传递给 JUnit 测试。  |
|   `environmentVariables`   |  使用此复选框在命令行上设置额外的环境变量。  |

## See also

### 外部链接

[Maven Surefire plugin](http://maven.apache.org/surefire/maven-surefire-plugin/index.html) [surefire:test](http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html)

