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

qmltestrunner reports a wrong LOC for failing tests

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.0
    • 5.0.0
    • Testing: QuickTest
    • None
    • fa2ec635aa77965dee617ea804947dcb557bde2e

    Description

      PRECONDITIONS OR PREVIOUS STATUS:
      having a qml unit test using the compare() that fails

      STEPS LEADING TO PROBLEM AND OUTCOME:
      Run qmltestrunner, and look at the reported "Loc". A line in a wrong file is
      shown.

      EXPECTED OUTCOME:
      "Loc": of the file/line with the failing comapre() tests

      Here an example output:

      FAIL! : qmltestrunner::mytest::test_loc() Compared values are not the
      same
      Actual (): 114
      Expected (): 100
      Loc: [QtTest/TestCase.qml(473)]

      Attachments

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

        Activity

          People

            charles Charles Yin (closed Nokia identity) (Inactive)
            charles Charles Yin (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes