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

For Unittest++ xml, want to have a <time> tag inside of the <test> tag

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor Minor
    • xunit-plugin
    • None
    • Jenkins 1.653, Linux

      For passing the test duration time to xUnit, it needs to be as an attribute of the <test> tag like this:

      <?xml version="1.0"?>
      <unittest-results>
        <test suite="Package.Suite" name="Testname" time="1.234"/>
      </unittest-results>
      

      It would be nice to alternatively allow to pass this information in a <time> tag like this:

      <?xml version="1.0"?>
      <unittest-results>
        <test suite="Package.Suite" name="Testname">
          <time>1.234</time>
        </test>
      </unittest-results>
      

      (It's a bit similar to qt xml format, which uses something like `<Duration msecs="13"/>`; seen here: https://github.com/jenkinsci/xunit-plugin/blob/master/src/test/resources/org/jenkinsci/plugins/xunit/types/qtestlib/testcase2/input.xml)

      The reason for this improvement request is as follows: I use Unittest++ and Jenkins / xUnit for unit testing on very resource limited bare-metal microcontroller systems. These target systems especially have very low amount of RAM.
      As long as I have to pass the test duration time as attribute of the <test> tag, I have to store all the <system-out> and <failure> output / content into RAM until the test is finished; but this is quite impossible for some test cases.
      If I became able to pass the test duration time into a <time> tag, then I just can stream out all the <system-out> and <failure> output /content (typically via RS232) without the need of so much RAM and at the end of the test I stream out the <time> tag.

            nfalco Nikolas Falco
            joe_merten Joe Merten
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: