Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
Qt Creator 9.0.0-rc1
-
None
-
-
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
- relates to
-
QTCREATORBUG-21093 Run Test Under Cursor runs all Tests with the same name regardless of the testcase
- Closed