I have some widget application project on Qt 5.9.3. Now for a Unit testing I've created a new root "subdir" project, which contains my main application project and the new Qt test project:
Notice - how I create the root solution folder with an existing project:
- In Qt creator: File -> New File or Project -> Other Projects -> Subdirs Projects
- How to add an existing project to it: in subdirs project's .pro file append my existing project name and *copy the existing project's folder to the solution folder.
- Create new test project through File -> New File or Project -> Other Projects -> Qt Unit Test -> Next -> ... -> Add as subproject to project 'my_solution'.pro.
Now I need to run the test project automatically before the main application start. How this can be done in Qt Creator (4.4.1)? What I have now in the solution project settings:
Any ideas? Is it possible to make two such tasks sequentially? How do you make auto start for unit tests in Qt Creator?