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

Support CTest XML format

    XMLWordPrintable

Details

    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

          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.

          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.

          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.

          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.

          CTest xml output sample

          gregoire Gregoire AUJAY added a comment - CTest xml output sample

          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

          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

          Thanks.
          Integrated

          gbois Gregory Boissinot added a comment - Thanks. Integrated

          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

          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

          Closing this issue as it seems to work fine.

          gregoire Gregoire AUJAY added a comment - Closing this issue as it seems to work fine.

          Great improvement, this made my day!

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

          People

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

            Dates

              Created:
              Updated:
              Resolved: