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

What is qmltestrunner? That is the question.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.10
    • None

    Description

      See: https://stackoverflow.com/questions/40016081/what-is-qmltestrunner (asked 1 year ago). This tool has been around for much longer, without a proper documentation about it.

      http://doc.qt.io/qt-5/qtquick-qtquicktest.html Does not mention it at all. By looking at the source code It seems that the answer on Stack Overflow is correct:

      > Is qmltestrunner part of qt quick test framework?

      > Yes. [..] you need a .cpp file that contains QUICK_TEST_MAIN(xxx) and a .pro file that contains > CONFIG += qmltestcase, and build this project to run your QML unit tests. The output > binary file of this project is (almost the same as) qmltestrunner.

      The "Qt Quick Test Reference Documentation" documentation should mention it and explain which is the preferred solution and why.

      Attachments

        Issue Links

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

          Activity

            People

              docteam Qt Documentation Team
              paeglis Gatis Paeglis
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes