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

QtTest: do not print PASS lines for initTestCase / cleanupTestCase if they're never executed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.10
    • Testing: qtestlib
    • None

      Currently QtTestLib prints a PASS for initTestCase() and cleanupTestCase() even if those functions have never been executed. This may happen because they're simply not declared for a given testcase.

      It may also happen if they do exist, but they've *not* been made private slots by accident. In this case claiming a pass is a strongly misleading statement – the functions exist but they have never been invoked! Given this is test code, it'd be better not to "lie" in the log.

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

            macadder Jason McDonald
            peppe Giuseppe D'Angelo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes