Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-93487

Skip information missing in JUnit XML

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15
    • Fix Version/s: None
    • Component/s: Testing: qtestlib
    • Labels:
      None
    • Platform/s:
      All

      Description

      When using the JUnit XML format as test output format, if a test is skipped it's not tagged as skipped. CI tools like GitLab are unable to recognize properly a skipped test then.

      A skipped test should have this syntax

      <?xml version="1.0" encoding="UTF-8"?> <testsuite name="My Test Suite" tests="1" failures="0" errors="0" time="0">
       <testcase name="Tests can pass" classname="My Test Suite" time="5.28e-06"></testcase> 
       <testcase name="Tests can be skipped" classname="My Test Suite" time="0.00021871">
          <skipped></skipped> 
        </testcase> 
      </testsuite>

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            macadder Jason McDonald
            Reporter:
            moia Maurizio Ingrassia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes