summaryrefslogtreecommitdiffstats
path: root/QtTest/TestCase.qml
blob: 8e06716187aed3d84569ab7e4c38bcd059a41561 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import Qt 4.7
import QtTest 1.0

TestCaseBase {
    Component.onCompleted: {
        prevWhen = when
        if (when && !completed && !running) {
            print("********* Start testing of " + name + " *********")
            var success = run()
            print("Totals: " + numPassed + " passed, " +
                               numFailed + " failed, " +
                               numSkipped + " skipped");
            print("********* Finished testing of " + name + " *********")
            Qt.quit()       // XXX - how do we set the exit value?
        }
    }
}