简体   繁体   English

詹金斯的Fitnesse插件

[英]Fitnesse plugin in Jenkins

I'm trying to configure Fitness in Jenkins but have got stuck on the following sentence in the wiki: https://wiki.jenkins-ci.org/display/JENKINS/Fitnesse+Plugin : 我正在尝试在Jenkins中配置Fitness,但是仍然坚持使用wiki中的以下句子: https//wiki.jenkins-ci.org/display/JENKINS/Fitnesse+Plugin

Project settings in build step 构建步骤中的项目设置

When I open the Jenkins configuration I don't find any Fitnesse-settings at all. 当我打开Jenkins配置时,我根本找不到任何Fitnesse设置。 When I open the Project configuraiton the only thing that is fitnesse-related is "Publish Fitnesse results report" 当我打开项目配置时,唯一与fitnesse相关的是“Publish Fitnesse结果报告”

So, how and where do I set the url to my Fitnesse-server in my Jenkins configuration? 那么,我在Jenkins配置中如何以及在何处设置我的Fitnesse服务器的URL? Or is this something that I should do in the Maven .pom? 或者这是我应该在Maven .pom中做的事情吗?

Jenkins 1.406 Fitnesse-plugin 1.8. Jenkins 1.406 Fitnesse-plugin 1.8。

It took me a while to figure this out too. 我花了一段时间才弄明白这一点。 However, after reading the manual CAREFULLY and playing around for a while I got it to work just like I knew it had to. 然而,在仔细阅读了手册并玩了一段时间后,我就像我知道的那样工作了。

You need to include the jenkins FitNesse plug in twice in the job configuration: 您需要在作业配置中包含两次 jenkins FitNesse插件:

  • The first time is to execute the tests 第一次是执行测试
  • The second time gathers the results 第二次收集结果

Test execution: 测试执行:

Configure the first call to the plug-in under "Add post-build step", with the information to the FitNesse server and the tests to be executed. 在“添加后构建步骤”下配置对插件的第一次调用,其中包含FitNesse服务器的信息和要执行的测试。 I put the test results in the workspace and clean the workspace down between builds. 我将测试结果放在工作区中,并在构建之间清理工作区。

添加构建后步骤

Gather Results: 收集结果:

This is the step where the results are evaluated and the success or failure of the job is checked. 这是评估结果并检查作业成功或失败的步骤。 It also puts the link to the tests into the job overview. 它还将测试链接放入作业概述中。

Configure the second step under "Add post-build action" and include the test result (or results - ant type wild carding is allowd) you want to evaluate: 配置“添加构建后操作”下的第二步,并包含要评估的测试结果(或结果 - 允许使用ant类型野生梳理):

添加构建后操作

Now, when running a build, the FitNesse results are evaluated and the job is passed or failed based on the FitNesse results in addition to the other test steps you have. 现在,在运行构建时,除了您拥有的其他测试步骤之外,还会根据FitNesse结果评估FitNesse结果并传递或失败作业。

You can see the results on the build summary: 您可以在构建摘要中查看结果:

在此输入图像描述

如果Fitnesse插件安装正确,“运行Fitnesse测试”应该显示为“添加构建步骤”按钮下的选项之一(以及“执行Shell”,“执行Windows批处理命令”等)。

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

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