DR695H | eb59430 | 2019-07-17 18:50:55 -0400 | [diff] [blame] | 1 | from unittest import TextTestRunner |
| 2 | from unittest import TestLoader |
| 3 | from unittest import TestSuite |
DR695H | 158df8f | 2019-05-04 15:51:36 -0400 | [diff] [blame] | 4 | |
| 5 | # import your test modules |
DR695H | eb59430 | 2019-07-17 18:50:55 -0400 | [diff] [blame] | 6 | from tests.vcpeutils.SoUtils_test import SoUtilsTest |
| 7 | from tests.ONAPLibrary.ProtobufKeywordsTest import ProtobufKeywordsTest |
DR695H | 1fade32 | 2019-07-18 18:08:56 -0400 | [diff] [blame] | 8 | from tests.ONAPLibrary.UUIDKeywordsTest import UUIDKeywordsTest |
DR695H | 601ead6 | 2019-07-19 14:29:09 -0400 | [diff] [blame] | 9 | from tests.ONAPLibrary.ServiceMappingKeywordsTests import ServiceMappingKeywordsTests |
DR695H | 4c8dc6a | 2019-07-19 16:55:55 -0400 | [diff] [blame] | 10 | from tests.ONAPLibrary.Base64KeywordsTests import Base64KeywordsTests |
DR695H | afd5237 | 2019-08-12 18:17:19 -0400 | [diff] [blame] | 11 | from tests.ONAPLibrary.RequestsHelperTests import RequestsHelperTests |
DR695H | 4ab02dd | 2019-08-20 12:37:45 -0400 | [diff] [blame] | 12 | from tests.ONAPLibrary.AAITests import AAITests |
DR695H | 303fda1 | 2019-09-19 12:24:38 -0400 | [diff] [blame^] | 13 | from tests.ONAPLibrary.SOTests import SOTests |
DR695H | 158df8f | 2019-05-04 15:51:36 -0400 | [diff] [blame] | 14 | |
| 15 | # initialize the test suite |
DR695H | eb59430 | 2019-07-17 18:50:55 -0400 | [diff] [blame] | 16 | loader = TestLoader() |
| 17 | suite = TestSuite() |
DR695H | 158df8f | 2019-05-04 15:51:36 -0400 | [diff] [blame] | 18 | |
| 19 | # add tests to the test suite |
DR695H | 4ab02dd | 2019-08-20 12:37:45 -0400 | [diff] [blame] | 20 | suite.addTests(loader.loadTestsFromTestCase(AAITests)) |
DR695H | 303fda1 | 2019-09-19 12:24:38 -0400 | [diff] [blame^] | 21 | suite.addTests(loader.loadTestsFromTestCase(SOTests)) |
DR695H | eb59430 | 2019-07-17 18:50:55 -0400 | [diff] [blame] | 22 | suite.addTests(loader.loadTestsFromTestCase(ProtobufKeywordsTest)) |
DR695H | 158df8f | 2019-05-04 15:51:36 -0400 | [diff] [blame] | 23 | suite.addTests(loader.loadTestsFromTestCase(SoUtilsTest)) |
DR695H | 1fade32 | 2019-07-18 18:08:56 -0400 | [diff] [blame] | 24 | suite.addTests(loader.loadTestsFromTestCase(UUIDKeywordsTest)) |
DR695H | 601ead6 | 2019-07-19 14:29:09 -0400 | [diff] [blame] | 25 | suite.addTests(loader.loadTestsFromTestCase(ServiceMappingKeywordsTests)) |
DR695H | 4c8dc6a | 2019-07-19 16:55:55 -0400 | [diff] [blame] | 26 | suite.addTests(loader.loadTestsFromTestCase(Base64KeywordsTests)) |
DR695H | afd5237 | 2019-08-12 18:17:19 -0400 | [diff] [blame] | 27 | suite.addTests(loader.loadTestsFromTestCase(RequestsHelperTests)) |
DR695H | 158df8f | 2019-05-04 15:51:36 -0400 | [diff] [blame] | 28 | |
| 29 | # initialize a runner, pass it your suite and run it |
DR695H | eb59430 | 2019-07-17 18:50:55 -0400 | [diff] [blame] | 30 | runner = TextTestRunner(verbosity=3) |
DR695H | 158df8f | 2019-05-04 15:51:36 -0400 | [diff] [blame] | 31 | result = runner.run(suite) |