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

QuickTest: List testcases when testcase is inline component

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.15, 6.0
    • Fix Version/s: 6.x
    • Component/s: Testing: QuickTest
    • Labels:
      None

      Description

      Consider

      import QtQuick 2.15
      import QtTest 1.15
      
      Item {
          component TC: TestCase {
              function test_tc()
              {
                  verify(true)
              }
          }
      
          TC {}
      }
      

      In this case, enumerateTestCases in quicktest.cpp won't list test_tc (but the actual test will run).

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-90762
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              fabiankosmale Fabian Kosmale
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews