[Qt-creator] test discovery
Eike Ziller
Eike.Ziller at qt.io
Tue Jan 5 16:23:15 CET 2021
> On Jan 5, 2021, at 15:53, André Pönitz <apoenitz at t-online.de> wrote:
>
> On Tue, Jan 05, 2021 at 07:39:53AM -0500, Stefan Seefeld wrote:
>>
>> On 2021-01-05 2:30 a.m., Eike Ziller wrote:
>>>> On Dec 31, 2020, at 18:19, Stefan Seefeld <stefan at seefeld.name>
>>>> wrote:
>>>>
>>>> Hello,
>>> Hi,
>>>
>>>> I have added some tests to my project that run a (C++) executable
>>>> with a set of command-line arguments. There is no particular C++
>>>> API to drive the tests (as in google tests or similar). Tests
>>>> simply pass or fail based on the process status. The tests are
>>>> added to the cmake project using the usual `add_test()` function.
>>>> How can I make qtcreator aware of these new tests ? It only seems
>>>> to know about tests that use one of those C++ testing frameworks.
>>>> Is there anything I'm missing ?
>>> there is some work going on to support ctest in the tests panel etc
>>> here AutoTest: Provide basic ctest integration (I1cb85569) · Gerrit
>>> Code Review
>>> https://codereview.qt-project.org/c/qt-creator/qt-creator/+/318051
>>> As far as I can tell that has chances to land in Qt Creator 4.15.
>>
>> As this is a plugin, is there any way to "backport" it to work with
>> older qt-creator versions ?
>
> I am fairly sure this will not be backported centrally, so you would
> have to try yourself. At that time you'll usually have a self-build
> Creator as well, which in turn means backporting would have no real
> benefits over using a self-build Creator from master branch directly.
And when it is integrated into the Qt Creator codebase, it will be available in nightly binary snapshots for 4.15 too.
e.g. https://download.qt.io/snapshots/qtcreator/4.15/
--
Eike Ziller
Principal Software Engineer
The Qt Company GmbH
Erich-Thilo-Straße 10
D-12489 Berlin
eike.ziller at qt.io
http://qt.io
Geschäftsführer: Mika Pälsi,
Juha Varelius, Jouni Lintunen
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
More information about the Qt-creator
mailing list