Skip to content
QtWS25 Last Chance
  • How to run multiple unit tests from command-line?

    Unsolved General and Desktop qttest qmake
    6
    0 Votes
    6 Posts
    789 Views
    SGaistS
    @Pixelgrease you might also want to consider migrating to cmake for the long run.
  • QtTest - Share your workflow

    Unsolved General and Desktop testing qttest unit-testing
    5
    0 Votes
    5 Posts
    560 Views
    U
    @SGaist Thank you for taking the time. Now, I am happy that I've more or less applied the architecture and workflow suggested by the man himself already. The example you used toward the end is exactly my case, which leads me to ask for tips here. I will be checking the source tree for more specific cases and will be making modifications accordingly.
  • Automated testing recomendations

    Unsolved General and Desktop testing gtest qttest
    6
    0 Votes
    6 Posts
    801 Views
    SGaistS
    CTest is the test runner. Yes that's the starting point. Then you can have separated functional tests where you validate the high level functionalities and finally integration tests where you ensure that the final application is working as expected.
  • 0 Votes
    2 Posts
    630 Views
    J
    I found a solution for the issue: Simply split the main() from the rest of the Project . Here is the updated Production Code Product specification: import qbs Project { name: "TheRealApp" QtApplication { name: "TheApp" Depends { name: "cpp" } Depends { name: "library" } Group { name: "Main" files: [ "main.cpp", ] } } StaticLibrary{ name: "library" Depends { name: "cpp" } Depends { name: "Qt.core" } Export { Depends { name: "cpp" } cpp.includePaths: product.sourceDirectory } Group{ name: "Grp_Main" files: [ "mycustomclass.cpp", "mycustomclass.h", ] } } }