[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] Support for the unitest framework of Qt
From:       "Giovanni Bajo" <rasky () develer ! com>
Date:       2006-09-22 12:37:41
Message-ID: 04b601c6de43$e5017190$e303030a () trilan
[Download RAW message or body]

Phil Thompson wrote:

>> Is there planned any support for the Qt Uni Testing Framework?
>
> No plans. It seems to use templates for some things (addColumn())
> which makes it a real pain. Is there a useful subset you can identify?

In my opinion, the testing *framework* itself is not very useful: we have
pleny of them in Python already (unittest, etc.) and in an average PyQt
program there will be other tests not related to Qt. I guess an average PyQt
program with tests will use a Python framework for tests.

What is very useful, instead, are the functions to *implement* tests, like
keyClick(), mouseMove() and similar functions. I'll prepared a short list of
functions/macros/enum in the QTest namespace which I believe would be very
useful in PyQt:

enum KeyAction
enum MouseAction
keyClick()
keyClicks()
keyEvent()
keyPress()
keyRelease()
mouseClick()
mouseDClick()
mouseMove()
mousePress()
mouseRelease()
qSleep()
qWait()

Anything else, like the QTEST/QVERIFY family of macros, are part of the
framework, which I personally don't plan to ever use in a PyQt application
anyway.
-- 
Giovanni Bajo

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic