【发布时间】:2012-09-19 11:03:57
【问题描述】:
我正在使用 JUnit 4.8.1 和 Surefire 2.8.1。在我的机器上,我只能通过以下方式运行一种测试方法:
$$ mvn clean test -Dtest=TestClass#TestMethod
但是在网格配置中运行相同的命令时,TestClass 中的所有测试都会运行。
在 pom 中唯一的区别是
<configuration>
<parallel>both</parallel>
</configuration>
surefire-plugin 中的配置。
任何想法,我如何在网格中只运行一种测试方法?
【问题讨论】:
标签: java selenium junit selenium-grid surefire