maven-failsafe-plugin没有接受testng测试

时间:2015-03-17 12:36:59

标签: maven integration-testing testng spring-test maven-failsafe-plugin

我在指定maven-failsafe-plugin时遇到了问题:

@ContextConfiguration(locations = {"classpath:testApplicationContext.xml"})
public class SomeIT extends AbstractTestNGSpringContextTests

插件无法再处理此测试。

插件配置:

               <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-failsafe-plugin</artifactId>
                <version>2.18.1</version>
                <executions>
                    <execution>
                        <id>integration-test</id>
                        <goals>
                            <goal>integration-test</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>verify</id>
                        <goals>
                            <goal>verify</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

0 个答案:

没有答案