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

Skip information missing in JUnit XML

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.7, 5.15.8, 5.15
    • Testing: qtestlib
    • None
    • 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

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes