[英]Running mvn integration-test does not run robotframework test cases
robotframework:run目标的文档说,它绑定到maven的集成测试生命周期。 这应该意味着,如果我只运行mvn integration-test,我的机器人测试用例就应该执行。 但是,这没有发生。 命令mvn integration-test robotframework:run可以工作。
这是我在POM.xml中声明插件的方式
<plugin>
<groupId>org.robotframework</groupId>
<artifactId>robotframework-maven-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.robotframework</groupId>
<artifactId>robotframework</artifactId>
<version>2.8.4</version>
</dependency>
</dependencies>
<configuration>
<testCasesDirectory>src/test/resources/robotframework/acceptance</testCasesDirectory>
</configuration>
</plugin>
默认情况下,该插件绑定到集成测试阶段。 这意味着在执行过程中,如果省略相位元素,则默认情况下将对其进行集成测试。 您仍然需要执行以使插件在阶段自动执行任何操作。 尝试将执行部分添加到您的现有配置中,这在入门示例中。
<plugin>
<groupId>org.robotframework</groupId>
<artifactId>robotframework-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.robotframework</groupId>
<artifactId>robotframework</artifactId>
<version>2.8.4</version>
</dependency>
</dependencies>
<configuration>
<testCasesDirectory>src/test/resources/robotframework/acceptance</testCasesDirectory>
</configuration>
</plugin>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.