[Qbs] AutotestRunner in QtCreator

Björn Schäpers qt-maillist at hazardy.de
Tue Nov 24 13:38:02 CET 2020


Am 24.11.2020 um 10:17 schrieb Richard Weickelt:
> What do you mean, it does not show up? It should show up as a product in the project view, but it is not built by default. In order to "run" it, you need to
>
> 1. have application products with the additional type autotest. Just write something like:
>
> Application {
>      type: base.concat(["autotest"])
>      // ...
>
> 2. Build the AutorestRunner product explicitly. It will not show up under "run".

That's what I meant, I can not select it as a run target.

And I don't know how to say "just build product X", if it's not a run target.

>
> -----Original Message-----
> From: "Björn Schäpers" <qt-maillist at hazardy.de>
> To: qbs at qt-project.org
> Sent: Tue, 24 Nov 2020 9:21
> Subject: [Qbs] AutotestRunner in QtCreator
>
> Hi,
>
> I've added a AutotestRunner to my Project, but it does not show up in the
> Creator, I think this is because it does not create a binary, right?
>
> I've not looked into the code, but how feasible would it be to give the Creator
> a fake executable to run the tests?
>
> Another idea I had, but not yet tested, is adding a dummy executable (just empty
> main()) which depends on the Runner, then the tests should run, when I build the
> dummy, right?
>
> Regards,
> Björn.
> _______________________________________________
> Qbs mailing list
> Qbs at qt-project.org
> https://lists.qt-project.org/listinfo/qbs




More information about the Qbs mailing list