我有一个与Maven和Cucumber集成的Selenium自动化框架。我想用詹金斯做黄瓜测试。
我正在执行以下步骤:
黄瓜测试在执行这些步骤后不会运行,但是构建是成功的。
发布于 2016-11-08 13:46:43
您的pom.xml应该按照以下脚本编写脚本。
另外,jenkins中的目标和选项应该是-Dtest=Runnerclass test,如果您正在运行单个测试。
<profiles>
<profile>
<id>integration-tests</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<parallel>none</parallel>
<threadCount>1</threadCount>
<disableXmlReport>true</disableXmlReport>
</configuration>
<executions>
<execution>
<id>Runnerclass</id>
<phase>integration-test</phase>
<goals>
<goal>integration-test</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>上面插件中的id是你的跑步者。然后你就可以在詹金斯做测试了。
发布于 2018-01-03 18:01:21
在您的pom.xml中,需要以下库
<pluginManagement></pluginManagement>1
2
再次构建项目,然后在您的pom.xml目录下执行- "maven干净“、"maven测试”。
https://stackoverflow.com/questions/39553484
复制相似问题