Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-20200

Test results window lists test cases of new added test class twice

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.6.0
    • Test Integration
    • None
    • Qt Creator 4.6.0 from revision 3ac2aa7bb5 (but same behavior I have since lots of months; it's not a new bug).

      Windows 7 64 bit

      Is not depended on compiler; same behavior with 4.8.5, 5.6, 5.10 a.s.o.

      I'm using auto-test in following manner:

      Define maintest.cpp with main function:

      // includes...
      
      int main(int argc, char *argv[]) {
          QCoreApplication app(argc, argv);
          app.exit(0);
      
          int status = 0;
      
          TestClass1 tC1;
          status |= QTest::qExec(&tC1, argc, argv);
      
          TestClass2 tC2;
          status |= QTest::qExec(&tC2, argc, argv);
      
          return status;
      }
      

      In the test classes are the test cases defined as private slots.

       

      Generally, this approach works fine.

      But:

      If I'm adding a new test class (TestClass 3 for example) and run tests, the results of the last added test class will be listed twice in test results window (see screenshot in attachment). Also the number of failed tests from the last test class is counted twofold.

      The bug can be obviated by restarting QT-Creator. The test class will be listed once then.

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

            cstenger Christian Stenger
            barnabas88 barnabas88
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes