-
Notifications
You must be signed in to change notification settings - Fork 7
/
run_tests.py
54 lines (38 loc) · 1.1 KB
/
run_tests.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
"Runs all tests"
from gpkit.tests.helpers import run_tests
TESTS = []
from gpfit.tests import t_LM
TESTS += t_LM.TESTS
from gpfit.tests import t_lse_implicit
TESTS += t_lse_implicit.TESTS
from gpfit.tests import t_lse_scaled
TESTS += t_lse_scaled.TESTS
from gpfit.tests import t_ba_init
TESTS += t_ba_init.TESTS
from gpfit.tests import t_max_affine
TESTS += t_max_affine.TESTS
from gpfit.tests import t_softmax_affine
TESTS += t_softmax_affine.TESTS
from gpfit.tests import t_implicit_softmax_affine
TESTS += t_implicit_softmax_affine.TESTS
from gpfit.tests import t_print_fit
TESTS += t_print_fit.TESTS
from gpfit.tests import t_plot_fit
TESTS += t_plot_fit.TESTS
from gpfit.tests import t_ex6_3
TESTS += t_ex6_3.TESTS
from gpfit.tests import t_examples
TESTS += t_examples.TESTS
def run(xmloutput=False):
"""Run all gpfit unit tests.
Arguments
---------
xmloutput: bool
If true, generate xml output files for continuous integration
"""
if xmloutput:
run_tests(TESTS, xmloutput='test_reports')
else:
run_tests(TESTS)
if __name__ == '__main__':
run()