Using QT Unit Tests in a project - conflicting main(…) functions

前端 未结 1 1163
醉话见心
醉话见心 2021-02-14 09:20

I set my first steps upon the noble path of using unit tests to develop my application, but it proves to be a steep and rough one. I\'m developing an application in Qt, so thou

1条回答
  •  梦毁少年i
    2021-02-14 10:03

    Definitely create a separate project for your tests. If you arrange the application project and test project in side-by-side directories, you should be able to reference your code units from your application project using relative paths in your test.pro file.

    I use the very handy test runner presented on this blog.

    0 讨论(0)
提交回复
热议问题