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".

-----Original Message-----
From: "Björn Schäpers" <qt-maill...@hazardy.de>
To: qbs@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@qt-project.org
https://lists.qt-project.org/listinfo/qbs
_______________________________________________
Qbs mailing list
Qbs@qt-project.org
https://lists.qt-project.org/listinfo/qbs

Reply via email to