Jenkins Fitness Plugin

I'm trying to set up Fitness in Jenkins, but am stuck in the following sentence on the wiki: https://wiki.jenkins-ci.org/display/JENKINS/Fitnesse+Plugin :

Build Options

When I open the Jenkins configuration, I do not find any Fitnesse settings at all. When I open the Project configuration, the only thing related to fitness is Publish Fitness Report.

So, how and where to set the URL of my Fitnesse server in my Jenkins configuration? Or is this what I should do in Maven.pom?

Jenkins 1.406 Fitness plugin 1.8.

+4
source share
2 answers

If the Fitnesse plugin is installed correctly, “Run Fitnesse Tests” should appear as one of the options in the “Add Build Step” button (along with the “Execute Shell”, “Execute Windows Batch Command”, etc.).

+2
source

It took me a while to figure this out. However, after reading the manual CAREFULLY and playing a little, I got it so that it works the way I knew it should have been.

You must include the jenkins FitNesse plug-in twice in the job configuration:

  • The first time you need to run tests
  • Second time collecting results

Test run:

Configure the first call to the plug-in in the “Add Step After Build” section, with information on the FitNesse server and the tests to be performed. I put the test results in the workspace and clear the workspace between assemblies.

Add step after build

Results collection:

This is the step where the results are evaluated and the success or failure of the assignment is verified. It also puts a link to the tests in the job review.

Configure the second step in the "Add an action after assembly" section and include the test result (or results - ant type wild carding is allowed) that you want to evaluate:

Add action after build

Now, when you start the build, FitNesse results are evaluated and the job is passed or crashes based on FitNesse results in addition to the other test steps you have.

You can see the results in the assembly summary:

enter image description here

+2
source

All Articles