[SOLVED] Unit testing, versioning and books
-
You've problably found this, but I quite like the tutorial from docs: "QTestLib":http://qt-project.org/doc/qt-4.8/qtestlib-tutorial.html.
SVN is ok, although I would recommend git - it's better in almost every way.
Qt Project "books section":https://qt-project.org/books has a nice selection. There are no books on Qt5 and QML currently, all entries there are therefore about Qt < 4.7.0. They are still very good, of course, Qt5 is almost fully source-compatible.
-
Clarification on question 1:
The most important aim is to find a best practice to keep separated the library and the tests?Thanks to francescmm & sierdzio
-
Check out Qt sources: source code and test code are separated and using different QMake subproject trees.
-
Or see my "QtWebService":https://github.com/sierdzio/qtwebservice for a simpler and smaller code ;) Qt sources can be quite overwhelming.
-
I think that is mandatory, since the library could change and I think that the tests can be a separated console app or script.
-
I've downloaded QtWebService,
Now I start to study it ;)
@sierdzio & @francescmm - Thanks again -
[quote author="sierdzio" date="1368791150"]Or see my "QtWebService":https://github.com/sierdzio/qtwebservice for a simpler and smaller code ;) Qt sources can be quite overwhelming.[/quote]
@sierdzio
Great example !
Thanks a lot ;) -
@sierdzio
I'm trying to rebuild QtWebService using Qt 5.0 but I get some issues like "toAscii is not a member of QString"
Is there any workaround to solve this issue?
Thanks in advance
Boris -
I'm not working on this project anymore. toAscii() was removed in Qt5. You can change all occurrences to QString::toLatin1().
-
I've found a good introduction video at "this link":http://qt-project.org/videos/watch/introduction_to_automated_testing_for_qt_applications
Thanks to all
Boris