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

Running a single test using "Run this test" may run another test with the same name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • Qt Creator 9.0.1
    • Qt Creator 9.0.0-rc1
    • Test Integration
    • None
    • Linux/X11
    • ad072db2b (master)

    Description

      Hello, 

      I have a medium-sized QMake project with QTest unit tests. There has been a change in one class' business logic with a requirement to retain backwards compatibility, and the logic is chosen with a class property. To make sure the old version's logic is still tested, I copied the existing test class, renamed it and enhanced it to test for the new logic. 

      Now, obviously, some of the existing algorithms remained unchanged, and both test classes contain test cases with the same method names. Sometimes, when a single test from the new test class is executed using right click in "Tests" pane and choosing "Run This Test", a test method from the "old" test class with the same name is executed:

      This behavior is not consistent and I feel like it happens more often when QtCreator is first started.

       

      UPD: Seems like I can reproduce the issue every single time when I choose "Run test under cursor" from the class declaration:

       

      Attachments

        Issue Links

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

          Activity

            People

              cstenger Christian Stenger
              dpurgin Dmitriy Purgin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes