-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_tests.py
executable file
·29 lines (25 loc) · 1.57 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
#! /usr/bin/env python3
# I, Robert Rozanski, the copyright holder of this work, release this work into the public domain. This applies worldwide. In some countries this may not be legally possible; if so: I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.
import unittest
from tests import mnm_repr_test
from tests import archive_test
from tests import quality_module_test
from tests import exporter_test
from tests import revision_module_test
from tests import cost_model_test
from tests import experiment_module_test
from tests import oracle_test
from tests import overseer_test
suite_1 = unittest.TestLoader().loadTestsFromTestCase(mnm_repr_test.ModelTest)
suite_2 = unittest.TestLoader().loadTestsFromTestCase(archive_test.ArchiveTest)
suite_3 = unittest.TestLoader().loadTestsFromTestCase(quality_module_test.QualityModuleTest)
suite_4 = unittest.TestLoader().loadTestsFromTestCase(exporter_test.ExporterTest)
suite_5 = unittest.TestLoader().loadTestsFromTestCase(revision_module_test.RevisionModuleTest)
suite_6 = unittest.TestLoader().loadTestsFromTestCase(cost_model_test.CostModelTest)
suite_7 = unittest.TestLoader().loadTestsFromTestCase(experiment_module_test.ExperimentModuleTest)
suite_8 = unittest.TestLoader().loadTestsFromTestCase(oracle_test.OracleTest)
suite_9 = unittest.TestLoader().loadTestsFromTestCase(overseer_test.OverseerTest)
suits = [suite_5] #suite_1, suite_2, suite_3, suite_4, suite_5, suite_6, suite_7, suite_8
for suite in suits:
print('\n\n')
unittest.TextTestRunner(verbosity=2).run(suite)