forked from sdu-cfei/mshoot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_test.py
25 lines (21 loc) · 808 Bytes
/
run_test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import unittest
from test.test_mshoot import TestMShoot
from test.test_fmi import TestFMI
from test.test_mpc import TestMPC
import logging
# Set up logging
logging.basicConfig(filename='test.log', filemode='w', level='DEBUG')
def suite():
suite = unittest.TestSuite()
suite.addTest(TestMShoot('test_optimize_const_bounds'))
suite.addTest(TestMShoot('test_optimize_const_bounds_joined'))
suite.addTest(TestMShoot('test_optimize_step_bounds'))
suite.addTest(TestMShoot('test_infeasible_x0'))
suite.addTest(TestMShoot('test_normalized_uy'))
suite.addTest(TestFMI('test_simulation'))
suite.addTest(TestFMI('test_optimal_control'))
suite.addTest(TestMPC('test_mpc'))
return suite
if __name__ == '__main__':
runner = unittest.TextTestRunner()
runner.run(suite())