Support for junit xml generated from ctest #2203
Replies: 6 comments 13 replies
-
Allure supports multiple dialects of junit.xml format out-of-the-box — specify the directory with XML files to the report generator, and it will generate the report. Although CTest or Gtest XML results format may differ. In that case, kindly provide an example of the result so we can see the difference and consider adding support to it. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply :) Really appreciate it ! I did try the ctest generated junit xml with allure. I only have one complaint and that is in the timeline. I have tried allure with pytest and I understand that, maybe the timeline depends on some allure generated data. But it would be really great, if allure can support ctest to the same extent as pytest. :) For your reference, attached are the following:
Allure version used: 2.24.1 Please let me know if you need any more info. |
Beta Was this translation helpful? Give feedback.
-
Having said that, i see individual tests dont have a start and end time stamps. Will try to get CTest to add this. :) I just feel allure reports are quite extensive and readable. Lot of C++ projects use Ctest as their test runner and use CDash as the test dashboard. Think it would be good to have this support going both ways :) |
Beta Was this translation helpful? Give feedback.
-
Hi @baev , Thanks for your response :) I have opened some tickets with CMake community to add some extra features to the junit xml report generated, mentioned below
I would request your/community's guidance on these requirements. Would adding this information to the "properties" element of the test case in the junit xml work? |
Beta Was this translation helpful? Give feedback.
-
JUnit XML plugin for Allure: https://github.com/allure-framework/allure2/blob/master/plugins/junit-xml-plugin/src/main/java/io/qameta/allure/junitxml/JunitXmlPlugin.java |
Beta Was this translation helpful? Give feedback.
-
Hi @baev , What do you think about ctest support for allure, from the info provided above and whatever ctest offers currently :) Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I am quite new to Allure and I am trying to understand its capabilities. My project is C++ based, we work a lot with ctest/gtest frameworks. Is it possible to use allure html reporting for a junit xml file generated from the tool CTest or Gtest.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions