[Interest] Unit test framework

Christian Gagneraud chgans at gmail.com
Tue Mar 6 04:37:50 CET 2018


On 5 March 2018 at 20:14, Himanshu Vishwakarma <himvish997 at gmail.com> wrote:
> I have to test the software, not by GUI I have to test the software have
> lots of file qml and js, How I can test the file of js and qml through the
> qt.
>
> problem is in the testing of the javascript file.
>
> How we connect them with the QtQuick QuickTest?
>
> Above software is not free charging too much.
>
> On Sun, Mar 4, 2018 at 7:07 AM, Jason H <jhihn at gmx.com> wrote:
>>
>> http://doc.qt.io/qt-5/qtquick-qtquicktest.html
>> But for GUI testing, I think FrogLogic has the only product to exerceise a
>> GUI.


I'm using squish at work for UI testing of Qt application, it's OK-ish
but not cheap.

You could maybe investigate if you can use part of gammaray for widget
book-keeping, and then use python/nose/behave for the test driving
part.

It is not clear to me what are you trying to achieve exactly, what is
your goal and/or task.

https://community.kde.org/GSoC/2018/Ideas#Project:_Unit_test_framework
is talking about unit tests.

I think it will be difficult to uit test QML+js, maybe you need a mix
of unit and GUI test, eg by creating ad-hoc simple GUI (that use only
one or 2 QML components) and then verified their behavior.

Interesting project BTW.

Chris



More information about the Interest mailing list