Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-17908

fitnesse plugin doesn't seem to parse result. Failing test suite is reported as SUCCESS.

    XMLWordPrintable

Details

    Description

      I configured fitnesse-jenkins plugin to run a suite from already running Fitnesse server. And seems Jenkins runs the test, saves the result. However it reports the build as SUCCES despite of the fact that most tests have failed - i.e. the output contains:
      <finalCounts>
      <right>54</right>
      <wrong>175</wrong>
      <ignores>1</ignores>
      <exceptions>18</exceptions>
      </finalCounts>

      Here is the console output of the Jenkins build job:

      Started by user anonymous
      Building in workspace /home/me/.jenkins/jobs/MyDemoJob1/workspace
      hudson.plugins.fitnesse.FitnesseBuilder:

      {fitnesseTargetPage=FitNesse.SuiteAcceptanceTests, fitnesseTargetIsSuite=true, fitnesseHost=localhost, fitnesseHttpTimeout=180000, fitnessePortRemote=8980, fitnesseStart=False, fitnessePathToXmlResultsOut=fitnesse-results.xml}

      Connnecting to http://localhost:8980/FitNesse.SuiteAcceptanceTests?suite&format=xml&includehtml
      Connected: 200/OK
      4k...
      ...
      4264k...
      Xml results saved as UTF-8 to /home/me/.jenkins/jobs/MyDemoJob1/workspace/fitnesse-results.xml
      Finished: SUCCESS

      I'm attaching the generated fitnesse-results.xml

      Attachments

        Activity

          javornikolov Yavor Nikolov created issue -
          rtyler R. Tyler Croy made changes -
          Field Original Value New Value
          Workflow JNJira [ 149204 ] JNJira + In-Review [ 177285 ]

          Hello, we are faced with the same issue. The build is still SUCCESS after one wrong test:

          12:29:21  Reading results as UTF-8 from /jenkins_slave/...
          12:29:21  Parsing results... 
          ...
          12:29:21  resultsFile: fitnesse-results.xml
          12:29:21  Got results: fitnesse-results.xml (): 4 right, 1 wrong, 0 ignored, 0 exceptions, in 1795 ms 

          Is there any way to fail the entire build in case of any wrong test?

          berezhinskiy Yaroslav Berezhinskiy added a comment - Hello, we are faced with the same issue. The build is still SUCCESS after one wrong test: 12:29:21 Reading results as UTF-8 from /jenkins_slave/... 12:29:21 Parsing results... ... 12:29:21 resultsFile: fitnesse-results.xml 12:29:21 Got results: fitnesse-results.xml (): 4 right, 1 wrong, 0 ignored, 0 exceptions, in 1795 ms Is there any way to fail the entire build in case of any wrong test?

          People

            Unassigned Unassigned
            javornikolov Yavor Nikolov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: