[Interest] Need advice to add tests to an existing project

Christian Gagneraud chgans at gmail.com
Fri Nov 3 23:47:06 CET 2017


On 4 November 2017 at 05:12, Xavier Bigand <flamaros.xavier at gmail.com> wrote:
> Hello,
>
> I recently added some unit tests to a personal project made with qbs, and I
> am interested to do something similar on my work project.
>
>
> We already have some hand made tests that are launched at start up, it start
> to be not enough and  I am interested to go deeper with better reports and a
> separated binary.
> But as our project is big, I want to know if there is a way to share .o
> files between the main project and the tests sub project.
> Our project is made with qmake and .a pro file, we also use shadow builds.

Depending on how many '.o' you want, you could:
- If it's just a a few: include the header and the cpp unit in your test itself.
- If there are more: bundle all your object in a static library.

Chris

>
>
> --
> Xavier
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>



More information about the Interest mailing list