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

Continue on evaluation failure

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • Testing: qtestlib
    • None

      It would be nice to have the possibility to have QVERIFY/QCOMPARE versions that actually continues on errors rather than stops the function.

      For example
      QVERIFY_STOP(list.size(), 1);
      QVERIFY_CONTINUE(list[0].someBool);
      QCOMPARE_CONTINUE(list[0].name, "Sune");

      With somewhat better naming than what I can come up with here. Google test uses ASSERT and EXPECT for test stopping and not-stopping verbage.

      At least to me, when debugging test failures having the possibility to see a bit more about the errors is often helpful.

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

            macadder Jason McDonald
            svuorela Sune Vuorela
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes