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

Convert cunit XML to junit XML in xUnit plugin

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: xunit-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      I am using xUnit plugin version 1.89

      I have a few tests that were written using cunit ( http://cunit.sourceforge.net )
      With cunit, it is possible to generate XML output in "automated mode".
      See:

      http://cunit.sourceforge.net/doc/running_tests.html#automated

      However, this XML format is not the same as JUnit XML, so can't be imported
      natively into Jenkins. I tried the cppunit converter in the xUnit plugin,
      but that didn't import the test results.

      I found this script which is part of the cyrus-imapd distribution:

      http://git.cyrusimap.org/cyrus-imapd/tree/cunit/cunit-to-junit.pl

      This script seems to do a good job of converting cunit xml to junit xml.

      Can we port the logic from this script to the xUnit plugin?

      It's not problem for me to use this script, but it would be super handy
      if this conversion logic was built into the xUnit plugin directly.

      I am new to writing Jenkins plugins, so would need some pointers. Thanks!

        Attachments

          Activity

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              rodrigc Craig Rodrigues
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: