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

NUnit Plugin 0.20 - ERROR: Step 'Publish NUnit test result report' failed: Could not read the XSL XML file.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: nunit-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.6.2
    • Similar Issues:

      Description

      Hi,

      We have been using the plugin for more than a year, and recently updated from 0.18 to 0.20.

      Since the upgrade, our build now fails and we get this error in the console log:

       

      ERROR: Step 'Publish NUnit test result report' failed: Could not read the XSL XML file. Please report this issue to the plugin author
      

      In the jobs's publisher step, I have attempted to remove the Fail the build if no test results are present, flag, and the build still fails.

      The wording of the error is a bit fluffy, but I assume the text "could not read" means it could read the file but not parse it correctly?

      We were using the NUnit 2 file format, but I also tried to upgrade to the NUnit 3 format (both produced using nunit3-console.exe 3.5.0.0), and both fails with identical errors.

      I have attached failing examples from our tests

      If you need more info please let me know.

      Hope I'm overlooking something obvious.

        Attachments

        1. nunit.hpi
          20 kB
        2. NUnitResult_v2.xml
          24 kB
        3. NUnitResult_v3.xml
          47 kB

          Activity

          Hide
          aroerdink Alfons Roerdink added a comment -

          Hi,

          does this attached nunit.hpi already contain a fix for issue mentioned above?

          This because I have the same issue and I tried the attached nunit.hpi package and now it works for me!

           

          Show
          aroerdink Alfons Roerdink added a comment - Hi, does this attached nunit.hpi already contain a fix for issue mentioned above? This because I have the same issue and I tried the attached nunit.hpi package and now it works for me!  
          Hide
          fsteff Flemming Steffensen added a comment -

          Alex,

          I just re-enabled NUNIT publishing on a single project, and wanted to reproduse the error I had, before testing with your hpi.

          However, it seems the error has disappeared, probably with the Jenkins 2.65 release last week?

          I hope others still have an affected setup!

           

          Show
          fsteff Flemming Steffensen added a comment - Alex, I just re-enabled NUNIT publishing on a single project, and wanted to reproduse the error I had, before testing with your hpi. However, it seems the error has disappeared, probably with the Jenkins 2.65 release last week? I hope others still have an affected setup!  
          Hide
          slide_o_mix Alex Earl added a comment -

          Alfons Roerdink, it has some fixes for a few things, but nothing specific to this issue (unless you issue is the same as another issue that was fixed).

           

          Flemming Steffensen Thanks for testing, please let me know if you see any issues in the future.

          Show
          slide_o_mix Alex Earl added a comment - Alfons Roerdink , it has some fixes for a few things, but nothing specific to this issue (unless you issue is the same as another issue that was fixed).   Flemming Steffensen Thanks for testing, please let me know if you see any issues in the future.
          Hide
          slide_o_mix Alex Earl added a comment -

          Fixed in 0.21

          Show
          slide_o_mix Alex Earl added a comment - Fixed in 0.21
          Hide
          theotsatsos Theodoros Tsatsos added a comment -

          Alex Earl it is not fixed in 0.21. I have this version and i still have the same issue

           

          Show
          theotsatsos Theodoros Tsatsos added a comment - Alex Earl it is not fixed in 0.21. I have this version and i still have the same issue  

            People

            Assignee:
            slide_o_mix Alex Earl
            Reporter:
            fsteff Flemming Steffensen
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: