简体   繁体   English

在詹金斯(Jenkins)中运行Cucumber-jvm

[英]Running cucumber-jvm in Jenkins

After some research into running Cucumber on Jenkins I have come to a dead end, I have read some post here about Running Cucumber but most are error not the process. 在对在Jenkins上运行Cucumber进行了一些研究之后,我走到了死胡同,在这里我读到了一些有关运行Cucumber的文章,但是大多数都是错误而不是过程。

Running via command line the problem here is that I don't know how to call this in Jenkins after building. 通过命令行运行时,这里的问题是构建后我不知道如何在Jenkins中调用它。

I have Jenkins running on an Ubuntu server. 我让Jenkins在Ubuntu服务器上运行。 Everything for building a maven project is setup, but how would one run the Runcukes file or setup the pom file in a way to call cucumber to start running? 用于构建Maven项目的所有内容都已设置,但是如何运行Runcukes文件或设置pom文件以一种方法调用黄瓜开始运行?

Wire up a Maven task to run cucumber. 连接Maven任务以运行黄瓜。 As cucumber generates stubs for junit, maven's surefire plugin will run the tests nicely. 当黄瓜为junit生成存根时,maven的surefire插件将很好地运行测试。

Jenkins has full support for running maven builds, so you won't have any issues there. 詹金斯(Jenkins)对运行Maven构建提供全面支持,因此您不会遇到任何问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM