diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-10-01 08:16:35 +1000 |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-10-01 08:16:35 +1000 |
commit | 02ffaec57c18e7893ec3654c8111ba7b1e8765f5 (patch) | |
tree | a86cc5835ca282c817ab9697f8e486f5f47b1734 | |
parent | d670c4b81db4311977b2a4fe583bb116dde339aa (diff) |
Warn if data-driven test does not have any data
-rw-r--r-- | QtTest/TestCaseBase.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/QtTest/TestCaseBase.qml b/QtTest/TestCaseBase.qml index 14cadc9..5eaef46 100644 --- a/QtTest/TestCaseBase.qml +++ b/QtTest/TestCaseBase.qml @@ -106,11 +106,15 @@ Item { if (runInternal(datafunc, true)) { var table = testCaseResult var successThis = true + var haveData = false for (var index in table) { + haveData = true var row = table[index] if (!runInternal(prop, true, row, row.tag)) successThis = false } + if (!haveData) + print("WARNING: no data supplied for " + prop + "() by " + datafunc + "()") if (successThis) { var prefix; if (name) |