##// END OF EJS Templates
Inits test structure
Alexandre Leroux -
r1168:6e9512b98e45
parent child
Show More
@@ -0,0 +1,79
1 #include <Network/NetworkController.h>
2 #include <SqpApplication.h>
3 #include <Time/TimeController.h>
4 #include <Variable/VariableController.h>
5
6 #include <QLoggingCategory>
7 #include <QObject>
8 #include <QtTest>
9
10 #include <memory>
11
12 Q_LOGGING_CATEGORY(LOG_TestAmdaFuzzing, "TestAmdaFuzzing")
13
14 namespace {
15
16 /**
17 * Class to run random tests
18 */
19 class FuzzingTest {
20 public:
21 void execute()
22 {
23 /// @todo: complete
24 qCInfo(LOG_TestAmdaFuzzing()) << "Execution of the test completed.";
25 }
26 };
27
28 } // namespace
29
30 class TestAmdaFuzzing : public QObject {
31 Q_OBJECT
32
33 private slots:
34 /// Input data for @sa testFuzzing()
35 void testFuzzing_data();
36 void testFuzzing();
37 };
38
39 void TestAmdaFuzzing::testFuzzing_data()
40 {
41 // ////////////// //
42 // Test structure //
43 // ////////////// //
44
45 /// @todo: complete
46
47 // ////////// //
48 // Test cases //
49 // ////////// //
50
51 ///@todo: complete
52 }
53
54 void TestAmdaFuzzing::testFuzzing()
55 {
56 auto &variableController = sqpApp->variableController();
57 auto &timeController = sqpApp->timeController();
58
59 FuzzingTest test{};
60 test.execute();
61 }
62
63 int main(int argc, char *argv[])
64 {
65 QLoggingCategory::setFilterRules(
66 "*.warning=false\n"
67 "*.info=false\n"
68 "*.debug=false\n"
69 "FuzzingOperations.info=true\n"
70 "TestAmdaFuzzing.info=true\n");
71
72 SqpApplication app{argc, argv};
73 app.setAttribute(Qt::AA_Use96Dpi, true);
74 TestAmdaFuzzing testObject{};
75 QTEST_SET_MAIN_SOURCE_PATH
76 return QTest::qExec(&testObject, argc, argv);
77 }
78
79 #include "TestAmdaFuzzing.moc"
@@ -62,7 +62,8 sciqlop_amdaplugin = library('amdaplugin',
62 tests = [
62 tests = [
63 [['tests/TestAmdaParser.cpp'],'test_amda_parser','AMDA parser test'],
63 [['tests/TestAmdaParser.cpp'],'test_amda_parser','AMDA parser test'],
64 [['tests/TestAmdaResultParser.cpp'],'test_amda_result_parser','AMDA result parser test'],
64 [['tests/TestAmdaResultParser.cpp'],'test_amda_result_parser','AMDA result parser test'],
65 [['tests/TestAmdaAcquisition.cpp'],'test_amda_acquisition','AMDA Acquisition test']
65 [['tests/TestAmdaAcquisition.cpp'],'test_amda_acquisition','AMDA Acquisition test'],
66 [['tests/TestAmdaFuzzing.cpp'],'test_amda_fuzzing','AMDA fuzzing test']
66 ]
67 ]
67
68
68 foreach unit_test : tests
69 foreach unit_test : tests
General Comments 0
You need to be logged in to leave comments. Login now