Qt 5.9.4 をリリースしました

この記事は The Qt BlogQt 5.9.4 Released を翻訳したものです。
執筆: Tuukka Turunen, 2018年01月23日

Qt 5.9.4 をリリースいたしました。パッチリリースである Qt 5.9.4 には新機能の追加はありませんが、数多くのバグフィックスや様々な改善が含まれています。

Qt 5.9.3 に対して、Qt 5.9.4 には 200程度のバグフィックス を含む合計で500以上の変更がなされています。重要な変更に関しては Qt 5.9.4 の Change Files を参照してください。

Qt 5.9 LTS はまもなく「Strict」フェーズ に以降します(dev ブランチから Qt 5.11 ブランチが生成されるタイミングです)。このフェーズでは、重大なバグフィックスや重要なパフォーマンスの改善のみが採用されるようになります。Qt 5.9.x のパッチリリースは今後も続く予定です。Qt 5.9.5 は3月を予定しています。

オンラインインストール経由で Qt をお使いの方は、付属のメンテナンスツールより Qt 5.9.4 にアップデートしていただくことが可能です。新規にインストールする場合は、Qt Account のポータルサイトか qt.io のダウンロードページ よりインストーラーをダウンロードしてください。オフラインパッケージは商用ユーザーの方は Qt Account ポータルサイトより、オープンソースユーザーの方は qt.io のダウンロードページ より入手可能です。


Blog Topics:

Comments

?
Cyrille Berger
0 points
175 months ago

Cool, would be nice to see someone make it works with cmake :) (not me, I am infinitely too lazy)

?
Nathan
0 points
175 months ago

How hard would it be to make this same program work with any set of unit tests? Say I want to use the same pretty interface for the unit tests on my own OSS project. Can I cherry-pick this program and fill it in with my list of auto-tests, or is it not ready for that yet?

?
razvanpetru
0 points
175 months ago

I'm as curious as Nathan: can this be used for generic autotests?

?
Yoann Lopes
0 points
175 months ago

@Nathan, @razvanpetru
Yes I thought about that, and it would not require a lot of modifications. It currently parses the auto-tests project file (auto.pro in tests/auto), so it could just take any .pro file as input instead. I will definitely look into that.

?
Robin Burchell
0 points
175 months ago

I wonder, how does this handle the GUI unit tests? Some months ago, I started work on my own test running tool (http://gitorious.org/qt-com...) as part of the community integration project I was working on at the time (http://blog.rburchell.com/2...), but one of the stumbling blocks I got stuck on at the time was that reliably creating and tearing down a test instance (dbus, GUI with no WM/styles, etc) was a lot of work.

I guess I'm going to have to look into this again sometime soon as I want to start revisiting the community integration stuff.

I'd also just like to add: great news! This is exactly the sort of thing I hope to see a lot more of after writing about the frustrations that many are feeling with trying to contribute to Qt (see http://blog.rburchell.com/2...).

?
Yoann Lopes
0 points
175 months ago

@Robin
It is a bit problematic for GUI tests indeed... For now you can't do anything at the same time for these tests. I'm not sure what to do about that...

@Siddharth
Thank Shane and Liang for that :)

@Rohan
Like Bjørn Erik said, the idea is just to have some helper tool to automate and speed up things so I don't think your first point is relevant.
For your second point you are right, ideally the tool should query the list of tests from some server, but then it closes the door to running external auto-tests. Or then we need a different mode for Qt auto-tests and external auto-tests...

?
mgoetz
0 points
175 months ago

Is this blog entry linked from our contribution model help pages? :)

?
Siddharth
0 points
175 months ago

+2 kudo points for making it work on Symbian. Thank you.

?
Rohan McGovern
0 points
175 months ago

I have a couple of suggestions:

First, the test running logic shouldn't be implemented in this tool, because then it can't be reused in automated systems. e.g. this tool probably runs the tests in a slightly different way than the Qt Continuous Integration system itself does - especially for the more complex things such as running of autotests on symbian devices.

Second, the parsing of test definitions from the .pro files probably shouldn't be done here, because it's more error prone than proper build system integration - this tool might have a different idea about what is/isn't a testcase than other systems which are trying to run the tests. The build system knows `make check' and ideally that's the one canonical way to determine what is and isn't a testcase.

?
Bjørn Erik Nilsen
0 points
175 months ago

@ Rohan

I believe Yoann wrote this nifty tool to make it easier to run Qt auto tests (tests/auto/*). His goal was clearly not to make a swiss army auto tester tool supporting every single use case without being good at anything. To put it simple; it is a replacement for the following workflow:
cd $class ./tst_$class cd .. cd $anotherClass ./tst_$anotherClass cd ..

... it even supports running tests in parallel :-)

?
Robin Burchell
0 points
175 months ago

@Yoann Lopes
A cross platform solution is... yeah, going to be difficult, if possible at all. The solution I settled on (as I only run Linux) at the time, was to run an Xvfb instance via QProcess. I'm happy to help contribute to make that happen if it's something you'd like to see.

However...
I noticed that some tests don't seem to like Xvfb (unreliable failures), using Xephyr instead made tests pass, but meant that I had to have an annoying window hovering around. Never figured out why. :)

?
Jens Stockhausen
0 points
175 months ago

That's a really nice (and fancy looking) tool. Having a test suite for making sure that nothing is broken by your own changes is a must.
What I'd like to see is something like this tool integrated into QtCreator so that real TDD is possible. If you have tried it you will not write code without tests anymore. So no only generating a new class via the QtCreator templates but also a corresponding UnitTest and running it automatically after compile would be a dream.

?
Alex
0 points
175 months ago

This a more general question: how can QGraphicsSceneEvents be simulated in unit testing? QTest has support for QWidget events (like QTest::keyEvent) but not for QGraphicsWidgets.

?
Yoann Lopes
0 points
175 months ago

@Alex
Just create the event and send it to the scene with QApplication::sendEvent().

?
Alex
0 points
175 months ago

@Yoann
Since events like QGraphicsSceneMouseEvent have no public constructor or property set methods I thought there might be established way to create and send them.

?
Etienne Savard
0 points
175 months ago

I agree 100% with Jens Stockhausen. TDD helpers in QtCreator are a must.

?
Gerolf
0 points
175 months ago

Yes, TDD in QtCreator would be really nice. Perhaps, the Test tool could be part of the qmake project file and be run automatically after building? so it would not opnly be integrated in QtCreator, but in all qmake build process...

?
jarne
0 points
175 months ago

Second the integration of some test-driven development features into QtCreator. If you compare use of QTestLib with QtCreator to, e.g., the JUnit tools available in Eclipse...

I would really like to see something comparable in QtCreator :-).