Maven 万无一失
- JUnit4 Runner http://maven.apache.org/surefire/surefire-providers/surefire-junit4/index.html
- JUnitCore Runner http://maven.apache.org/surefire/surefire-providers/surefire-junit47/index.html
它们之间有什么区别?
我注意到,excludedGroups 属性在surefire-junit47 中工作,但在surefire-junit4 中不起作用,为什么?
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit4</artifactId>
<version>2.18</version>
</dependency>
</dependencies>
<configuration>
<excludedGroups>my.com.IntegrationDB</excludedGroups>
</configuration>
</plugin>