Search code examples
c++qtqt4build-process

Testing Process of a C++ & Qt Application


I'm a part of a big (sort of...) C++ application written mainly in Qt. I was wondering if this is the right / common approach: whenever I make a change to a certain / several source files, I compile it (QtCreator) in debug mode, and then launch and test it. the problem is, each compilation takes a couple of minutes (usually a 1 - 3 minutes), I hate that, and I guess I'm doing something wrong here, maybe compiling the whole project for each minor change is not the right path to go?

thanks,


Solution

  • Try to use unit test with QTest as much as possible, then you can verify the parts first and then top it of with some test on the complete application. This saves a lot of time and can also help to produce more robust code if done right.

    This do need some kind of modular approach, so the code needs to be grouped in some way.