Re: [Qbs] Build QTests from single Product

2017-11-08 Thread Jake Petroules
> On Nov 8, 2017, at 9:12 AM, resurrect...@centrum.cz wrote: > > I tried what you suggested and it seems to work without problems: > > In common.qbs I created two new properties: > > ``` > property stringList files: []` > property string file > ``` > > And modified the internal property: >

Re: [Qbs] Build QTests from single Product

2017-11-08 Thread resurrection
And in fact I do have a suggestion, what about new property in the common.qbs:   property var userValues: [] property var userValue readonly property var multiplexMap: ({     userValues: "userValue",     profiles: "profile",   With this one could multiplex over pretty much anything as in any Produ

Re: [Qbs] Build QTests from single Product

2017-11-08 Thread resurrection
I tried what you suggested and it seems to work without problems:   In common.qbs I created two new properties:   ``` property stringList files: []` property string file ```   And modified the internal property:   ``` readonly property var multiplexMap: ({     files: "file",     profiles: "profile

Re: [Qbs] Build QTests from single Product

2017-11-08 Thread Jake Petroules
The simple answer is that multiplexing is limited to those 3 properties right now for technical reasons. In terms of the design concept, I certainly would have liked to allow it to work over ANY property, but we ran into limitations with the implementation. At least right now, it's technically

[Qbs] Build QTests from single Product

2017-11-08 Thread resurrection
In other testing frameworks like Google Test the test executable typically contains all test cases for the given module under test so there typically are as many products for tests as there are production modules. With QTest this is unsupported (although doable) and for good reasons too (mainly