Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
Qt Creator 4.4.1, Qt Creator 4.6.0-beta1
-
None
-
*System*
Linux m3xPC 4.10.0-38-generic #42~16.04.1-Ubuntu SMP Tue Oct 10 16:32:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
*Qt Creator and Qt*
Qt Creator 4.6.0-beta1 (4.5.82) Based on Qt 5.9.2 (GCC 5.4.0 20160609, 64 bit) - built from code
Qt Creator 4.4.1 Based on Qt 5.9.2 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit) - downloaded*System* Linux m3xPC 4.10.0-38-generic #42~16.04.1-Ubuntu SMP Tue Oct 10 16:32:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux *Qt Creator and Qt* Qt Creator 4.6.0-beta1 (4.5.82) Based on Qt 5.9.2 (GCC 5.4.0 20160609, 64 bit) - built from code Qt Creator 4.4.1 Based on Qt 5.9.2 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit) - downloaded
Description
When I load (or recreate) this project: AutoTesting01.zip I only get 1 unit test in the Tests panel (see QTCREATORBUG-19314). Executing the tests works fine.
If I change the order of the QTest::qExec calls in main.cpp the panel shows both test groups.
From this:
res += QTest::qExec(&tg1, argc, argv);
res += QTest::qExec(&tg2, argc, argv);
To this:
{{ res += QTest::qExec(&tg2, argc, argv); }}
{{ res += QTest::qExec(&tg1, argc, argv);}}
I got the 2 groups as expected:
Now running the tests in the Test Results panel shows the results twice:
It's the same if running the tests from Tools > Tests or the Tests panel.
Furthermore if I disable 1 group:
And I run only selected tests, I got both groups executed (only once):
Output is fine when I run the executable.