lundi 23 mars 2015

Unit test large Qt project

I have a fairly large Qt GUI project, which unfortunately lacks proper unit tests.


I'm planning to have a test project with a test source file for every class.


I digged through a lot of Qt's official docs, however there are some questions left:



  • How can I create a test suite? It seems all docs and tutorials cover only writing one test, but how do I bundle my unit tests efficiently?

  • How can I integrate the test execution into Qt Creator? Maybe running the tests as post-build step would be interesting?

  • Should I add all normal source files to the test project or is there a way to create a static lib?


Any pointers to tutorials covering hint testing of a larger Qt project are highly appreciated.


Aucun commentaire:

Enregistrer un commentaire