Making auto-testing easier
October 29, 2010 by Yoann Lopes | Comments
If you are a contributor to Qt, you should know by now that your patches must not cause any regressions. The auto-tests in Qt (located in <QTDIR>/tests/auto) are there to ensure that. These tests are run automatically by the Qt Continuous Integration System before merging a staging branch into the mainline.
As a contributor, before submitting a merge request on Gitorious, you should always run locally the auto-tests related to what you are changing to simplify the reviewer's job. For instance, if you are patching something in QGraphicsView, you should compile and run individually 19 different auto-tests (the ones starting with 'qgraphics'). If you are used to that, you probably think that it is not the most pleasant and fast thing to do...
Well, let me introduce you Qt Autotester:
This handy little tool (that was used only internally until now) will help you in this process by making it a lot more simpler. Basically, you just select a set of auto-tests then the tool makes everything for you: it compiles, runs and shows you the results in a nice way.
- You can manage several versions of Qt, save a set of auto-tests in a profile and export the results.
- It is of course cross-platform.
- You can remotely run the auto-tests on a Symbian device if you are developing on Windows (it automatically does that if Qt is built for Symbian).
The source is available here: http://qt.gitorious.org/qt-labs/qt-autotester
In a separate branch, I rewrote the UI with QtQuick and the Scenegraph to make it look even more fancy!
This project is of course open to suggestions and contributions. Enjoy!
Subscribe to our newsletter
Try Qt 6.5 Now!
Download the latest release here: www.qt.io/download.
Qt 6.5 is the latest Long-Term-Support release with all you need for C++ cross-platform app development.
Explore Qt World
Check our Qt demos and case studies in the virtual Qt World
Check out all our open positions here and follow us on Instagram to see what it's like to be #QtPeople.
Näytä tämä julkaisu Instagramissa.
Want to build something for tomorrow, join #QtPeople today! We have loads of cool jobs you don't want to miss! http://qt.io/careers #builtwithQt #software #developers #coding #framework #tool #tooling #C++ #QML #engineers #sales #tech #technology #UI #UX #CX #Qt #Qtdev #global #openpositions #careers #job
Henkilön Qt (@theqtcompany) jakama julkaisu