[Development] Writing good tests

Gatis Paeglis Gatis.Paeglis at qt.io
Mon Oct 9 13:51:55 CEST 2017


> here is the link to the Wiki on "Writing good tests" as requested at QtCS: http://wiki.qt.io/Writing_good_tests  .


Regarding the following point:



> If you must track mouse move events, consider replacing the use of QTest::mouseMove where the first parameter is a QWidget with the overload of QTest::mouseMove that takes a QWindow as parameter instead.


See https://codereview.qt-project.org/#/c/208000/ . This results in less verbose test function.


Gatis.


________________________________
From: Development <development-bounces+gatis.paeglis=qt.io at qt-project.org> on behalf of Friedemann Kleint <Friedemann.Kleint at qt.io>
Sent: Monday, October 9, 2017 1:26:29 PM
To: development at qt-project.org
Subject: [Development] Writing good tests


Hi,

here is the link to the Wiki on "Writing good tests" as requested at QtCS: http://wiki.qt.io/Writing_good_tests  .

Regards, Friedemann
The Qt Company GmbH

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20171009/49682125/attachment.html>


More information about the Development mailing list