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

Support CTest XML format

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hello, would it be possible to add native support for CTest XML output format.

      CTest is the test runner utility that goes along with CMake, so it is widely used.

      If that makes sense to you I can provide sample of output and a xslt that converts it to junit format.

        Attachments

          Activity

          Hide
          gbois Gregory Boissinot added a comment -

          Thanks for your suggestion.
          If you provide some result files and an XSLT for a JUnit output, I'll integrate it into the xUnit pluign.

          Show
          gbois Gregory Boissinot added a comment - Thanks for your suggestion. If you provide some result files and an XSLT for a JUnit output, I'll integrate it into the xUnit pluign.
          Hide
          gregoire Gregoire AUJAY added a comment -

          Hello, here is the xslt file I use. It is from rpavlik:
          https://github.com/rpavlik/jenkins-ctest-plugin/blob/master/ctest-to-junit.xsl

          I will add a CTest XML output sample.

          Show
          gregoire Gregoire AUJAY added a comment - Hello, here is the xslt file I use. It is from rpavlik: https://github.com/rpavlik/jenkins-ctest-plugin/blob/master/ctest-to-junit.xsl I will add a CTest XML output sample.
          Hide
          gregoire Gregoire AUJAY added a comment -

          CTest xml output sample

          Show
          gregoire Gregoire AUJAY added a comment - CTest xml output sample
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/plugins/xunit/types/CTestInputMetric.java
          src/main/java/org/jenkinsci/plugins/xunit/types/CTestType.java
          src/main/resources/org/jenkinsci/plugins/xunit/types/ctest-to-junit.xsl
          src/test/java/org/jenkinsci/plugins/xunit/types/CTestTest.java
          src/test/resources/org/jenkinsci/plugins/xunit/types/ctest/testcase1/input.xml
          src/test/resources/org/jenkinsci/plugins/xunit/types/ctest/testcase1/result.xml
          http://jenkins-ci.org/commit/xunit-plugin/c99126460efa9978126ee764afacb2f3d4fbd1a7
          Log:
          Fix JENKINS-17884

          Compare: https://github.com/jenkinsci/xunit-plugin/compare/10a79251820e...c99126460efa

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/xunit/types/CTestInputMetric.java src/main/java/org/jenkinsci/plugins/xunit/types/CTestType.java src/main/resources/org/jenkinsci/plugins/xunit/types/ctest-to-junit.xsl src/test/java/org/jenkinsci/plugins/xunit/types/CTestTest.java src/test/resources/org/jenkinsci/plugins/xunit/types/ctest/testcase1/input.xml src/test/resources/org/jenkinsci/plugins/xunit/types/ctest/testcase1/result.xml http://jenkins-ci.org/commit/xunit-plugin/c99126460efa9978126ee764afacb2f3d4fbd1a7 Log: Fix JENKINS-17884 Compare: https://github.com/jenkinsci/xunit-plugin/compare/10a79251820e...c99126460efa
          Hide
          gbois Gregory Boissinot added a comment -

          Thanks.
          Integrated

          Show
          gbois Gregory Boissinot added a comment - Thanks. Integrated
          Hide
          gregoire Gregoire AUJAY added a comment -

          Thanks I'll test that.

          rpavlik xslt is covered by MIT Licence. I think that you need to provide this file along with it: https://github.com/rpavlik/jenkins-ctest-plugin/blob/master/LICENSE

          Regards,
          Gregoire

          Show
          gregoire Gregoire AUJAY added a comment - Thanks I'll test that. rpavlik xslt is covered by MIT Licence. I think that you need to provide this file along with it: https://github.com/rpavlik/jenkins-ctest-plugin/blob/master/LICENSE Regards, Gregoire
          Hide
          gregoire Gregoire AUJAY added a comment -

          Closing this issue as it seems to work fine.

          Show
          gregoire Gregoire AUJAY added a comment - Closing this issue as it seems to work fine.
          Hide
          ponca707 Pontus Carlsson added a comment -

          Great improvement, this made my day!

          Show
          ponca707 Pontus Carlsson added a comment - Great improvement, this made my day!

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              gregoire Gregoire AUJAY
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: