diff options
Diffstat (limited to 'tests/auto/qknxproject/tst_qknxproject.cpp')
-rw-r--r-- | tests/auto/qknxproject/tst_qknxproject.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/auto/qknxproject/tst_qknxproject.cpp b/tests/auto/qknxproject/tst_qknxproject.cpp index 8dc04c4..a9429dd 100644 --- a/tests/auto/qknxproject/tst_qknxproject.cpp +++ b/tests/auto/qknxproject/tst_qknxproject.cpp @@ -449,9 +449,18 @@ private Q_SLOTS: QCOMPARE(address.Security, QLatin1String("Auto")); } - void testBuildings() + void testBuildingsAndLocations_data() { - QFile file(":/data/buildings.xml"); + QTest::addColumn<QString>("path"); + QTest::newRow("Test 'buildings' XML") << ":/data/buildings.xml"; + QTest::newRow("Test 'locations' XML") << ":/data/locations.xml"; + } + + void testBuildingsAndLocations() + { + QFETCH(QString, path); + + QFile file(path); QCOMPARE(file.open(QIODevice::ReadOnly), true); QXmlStreamReader reader(&file); |