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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.10.0
    • Testing: QuickTest
    • 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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            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