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

QtQuickTest no api to ignore message in "qmltest::UnknownTestFunc"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.10.0
    • Fix Version/s: None
    • Component/s: Testing: QuickTest
    • Labels:
      None

      Description

      TestCase currently contains the method ignoreWarning. Some warnings are printed asynchronously on some callback. There is currently no way to prevent this warning from beeing printed.

      import QtQuick 2.0
      import QtTest 1.0
      
      Rectangle {
          id: testClass
          Component.onCompleted: testClass.contains()
      
          TestCase {
              name: "visual"
              function test_doIt() {
                 //test something
             }
          }
      }
      

      This leads to the following output beeing printed:

      QWARN  : example::UnknownTestFunc() file:///[PATH]/tst_visual.qml:6: Error: Insufficient arguments
      

      Since this error message is printed without an attached test function it can not be ignored.

        Attachments

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

          Activity

            People

            • Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              linux_fan_dave David Feurle
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes