##// END OF EJS Templates
Inits unit test
Alexandre Leroux -
r712:ea644caa5086
parent child
Show More
@@ -0,0 +1,37
1 #include <QObject>
2 #include <QtTest>
3
4 class TestVariableSync : public QObject {
5 Q_OBJECT
6
7 private slots:
8 /// Input data for @sa testSync()
9 void testSync_data();
10
11 /// Tests synchronization between variables through several operations
12 void testSync();
13 };
14
15 void TestVariableSync::testSync_data()
16 {
17 // ////////////// //
18 // Test structure //
19 // ////////////// //
20
21 /// @todo
22
23 // ////////// //
24 // Test cases //
25 // ////////// //
26
27 /// @todo
28 }
29
30 void TestVariableSync::testSync()
31 {
32 /// @todo
33 }
34
35 QTEST_MAIN(TestVariableSync)
36
37 #include "TestVariableSync.moc"
@@ -1,19 +1,20
1
1
2
2
3 tests = [
3 tests = [
4 [['Common/TestStringUtils.cpp'],'test_string_utils','StringUtils test'],
4 [['Common/TestStringUtils.cpp'],'test_string_utils','StringUtils test'],
5 [['Data/TestDataSeries.cpp'],'test_data','DataSeries test'],
5 [['Data/TestDataSeries.cpp'],'test_data','DataSeries test'],
6 [['Data/TestOneDimArrayData.cpp'],'test_1d','One Dim Array test'],
6 [['Data/TestOneDimArrayData.cpp'],'test_1d','One Dim Array test'],
7 [['Data/TestTwoDimArrayData.cpp'],'test_2d','Two Dim Array test'],
7 [['Data/TestTwoDimArrayData.cpp'],'test_2d','Two Dim Array test'],
8 [['DataSource/TestDataSourceController.cpp'],'test_data_source','DataSourceController test'],
8 [['DataSource/TestDataSourceController.cpp'],'test_data_source','DataSourceController test'],
9 [['Variable/TestVariableCacheController.cpp'],'test_variable_cache','VariableCacheController test'],
9 [['Variable/TestVariableCacheController.cpp'],'test_variable_cache','VariableCacheController test'],
10 [['Variable/TestVariable.cpp'],'test_variable','Variable test']
10 [['Variable/TestVariable.cpp'],'test_variable','Variable test'],
11 [['Variable/TestVariableSync.cpp'],'test_variable_sync','Variable synchronization test']
11 ]
12 ]
12
13
13 foreach unit_test : tests
14 foreach unit_test : tests
14 test_moc_files = qt5.preprocess(moc_sources : unit_test[0])
15 test_moc_files = qt5.preprocess(moc_sources : unit_test[0])
15 test_exe = executable(unit_test[1],unit_test[0] , test_moc_files,
16 test_exe = executable(unit_test[1],unit_test[0] , test_moc_files,
16 dependencies : [sciqlop_core, qt5test])
17 dependencies : [sciqlop_core, qt5test])
17 test(unit_test[2], test_exe, args: ['-teamcity', '-o', '@0@.teamcity.txt'.format(unit_test[1])])
18 test(unit_test[2], test_exe, args: ['-teamcity', '-o', '@0@.teamcity.txt'.format(unit_test[1])])
18 endforeach
19 endforeach
19
20
General Comments 0
You need to be logged in to leave comments. Login now