FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit b74c066b authored by L. Bower's avatar L. Bower
Browse files

experimenting with ways of running tests

parent d9fd779f
No related branches found
No related tags found
No related merge requests found
import sys
import unittest
from unittest import TestLoader, TestSuite
from HtmlTestRunner import HTMLTestRunner
......@@ -10,16 +11,18 @@ from integration.partial.test_survey import TestSurvey
from integration.partial.test_advisory import TestAdvisory
def run_tests_and_report(output: str):
def build_test_runner() -> TestSuite:
tests: TestSuite = TestSuite()
tests.addTests(TestLoader().loadTestsFromTestCase(TestDeposition))
tests.addTests(TestLoader().loadTestsFromTestCase(TestEnvSuit))
tests.addTests(TestLoader().loadTestsFromTestCase(TestSurvey))
tests.addTests(TestLoader().loadTestsFromTestCase(TestAdvisory))
runner = HTMLTestRunner(output=output, combine_reports = True)
runner.run(tests)
return tests
if __name__ == '__main__':
run_tests_and_report(sys.argv[1])
_output_dir = sys.argv.pop()
_tests = build_test_runner()
_runner = HTMLTestRunner(output=_output_dir, combine_reports = True)
# unittest.main(testRunner = runner)
_runner.run(_tests)
......@@ -40,7 +40,7 @@ class BaseEnvSuitTestSuite:
status_file_path = os.path.join(IntegrationTestUtils.TEST_OUT_PATH,
IntegrationTestUtils.TEST_JOB_DIR, "STATUS_SUCCESS")
success_file_exists: bool = os.path.isfile(status_file_path)
self.assertTrue(success_file_exists)
self.assertTrue(False)
def test_standard_run_input_all_regions_ran(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment