This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      Hi Guys,

      History of question is:
      We have own system of tests for our C++ product,
      which is in develop more of 10 years.

      Now we consider plug this under Jenkins, so we try
      to generated minimal required XML file in JUNIT format.

      There was hope that may be, we can put into XML file only list of failed tests, and avoid list successful tests. Something like this:

      =====================================================
      <?xml version="1.0" encoding="UTF-8"?>
      <testsuites name="All Tests" tests="12345" failures="3" errors="0" time="350">
      <testcase name="Addition" classname="" time="100">
      <failure message="Value of: add(1, 1); Actual: 1;Expected: 2" type=""/>
      <failure message="Value of: sin(0); Actual: 1;Expected: 0" type=""/>
      </testcase>
      <testcase name="Zip Compresion" classname="" time="250">
      <failure message="Value of: zipme(); Actual: 1;Expected: 2" type=""/>
      </testcase>
      </testsuites>
      =====================================================

      But this not works ....

      Jenkins simply ignores attributes of line:

      <testsuites name="All Tests" tests="12345" failures="3" errors="0" time="350">

      And simply try parse all existed tests in XML, and count self failed and successful tests.

      Why is this?

      Above XML file is correct from any point of view.
      And it is minimal to make Jenkins record results ...

      And lets assume, that for our team it is okay to see only list of failed tests... No many sense to see 12500 successful tests on HTML pages of Jenkins. We have for this own log file.

            Assignee:
            Unassigned
            Reporter:
            Ruslan Zasukhin
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: