summaryrefslogtreecommitdiffstats
path: root/README
blob: aad1b318eae8f0f55b4d4ffec491a251cc7e7c38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

QtQuickTest module for Qt Quick
===============================

This directory contains an experimental module and test harness
for writing QTestLib-style unit tests in QML.  Build it against
Qt 4.7.1 as follows:

    $ /path/to/qt/bin/qmake qtest-qml.pro
    $ make
    $ make install

The "make install" step copies the necessary libraries, plugins,
and QML module definitions into the Qt build tree.

There is an example test case in the "tests/qmlauto" directory that
shows how to integrate QML unit tests into a qmake-based build system.

You can also run "make check" to verify that the example tests pass
correctly, and "make docs" to generate the HTML documentation under
"doc/html" using the qdoc3 tool from Qt.

Running QtQuickTest with Qt Quick 2.0
=====================================

By default, test cases are run using QDeclarativeView.  To switch to
QSGView instead, build against a version of Qt that has scenegraph
support and then run the unit tests as follows:

    $ QMLSCENE_IMPORT_NAME=quick1 TESTARGS=-qtquick2 make check