FAQ | This is a LIVE service | Changelog

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

adding a new html test runner that works with latest python

parent 295aeece
No related branches found
No related tags found
No related merge requests found
...@@ -80,7 +80,7 @@ stages: ...@@ -80,7 +80,7 @@ stages:
- ls $PACKAGES_DIR - ls $PACKAGES_DIR
half_fat_tests: half_fat_tests:
when: manual when: always
stage: half-fat stage: half-fat
extends: .before_script extends: .before_script
image: lb584/ews_coordinator_pip:gitlab image: lb584/ews_coordinator_pip:gitlab
...@@ -99,7 +99,7 @@ half_fat_tests: ...@@ -99,7 +99,7 @@ half_fat_tests:
expire_in: 10 days expire_in: 10 days
half_fat_epi_tests: half_fat_epi_tests:
when: always when: manual
stage: half-fat stage: half-fat
extends: .before_script extends: .before_script
image: lb584/ews_coordinator_pip:gitlab image: lb584/ews_coordinator_pip:gitlab
......
...@@ -4,5 +4,5 @@ python-docx==1.1.0 ...@@ -4,5 +4,5 @@ python-docx==1.1.0
rioxarray==0.15.0 rioxarray==0.15.0
Rtree==1.1.0 Rtree==1.1.0
scitools-iris==3.7.0 scitools-iris==3.7.0
html-testRunner==1.2.1 HTMLTestRunner-rv==1.1.2
coverage==7.4.0 coverage==7.4.0
\ No newline at end of file
...@@ -8,7 +8,7 @@ from typing import List, Type ...@@ -8,7 +8,7 @@ from typing import List, Type
from unittest import TestSuite, TestLoader, TestCase, TestResult from unittest import TestSuite, TestLoader, TestCase, TestResult
from zipfile import ZipFile from zipfile import ZipFile
from HtmlTestRunner import HTMLTestRunner from HTMLTestRunner import HTMLTestRunner
from Processor import Processor from Processor import Processor
from ProcessorDeposition import ProcessorDeposition from ProcessorDeposition import ProcessorDeposition
...@@ -102,7 +102,7 @@ class IntegrationTestUtils: ...@@ -102,7 +102,7 @@ class IntegrationTestUtils:
if _test_report_dir is None: if _test_report_dir is None:
_test_report_dir = IntegrationTestUtils.TEST_JOB_DIR _test_report_dir = IntegrationTestUtils.TEST_JOB_DIR
runner = HTMLTestRunner(output = _test_report_dir, combine_reports = True) runner = HTMLTestRunner(output = _test_report_dir)
result: TestResult = runner.run(tests) result: TestResult = runner.run(tests)
return result.wasSuccessful() return result.wasSuccessful()
......
import sys import sys
from unittest import TestLoader, TestSuite, TestResult from unittest import TestLoader, TestSuite, TestResult, TextTestRunner
from HtmlTestRunner import HTMLTestRunner from HTMLTestRunner import HTMLTestRunner
from integration.partial.test_advisory import TestAdvisory from integration.partial.test_advisory import TestAdvisory
from integration.partial.test_deposition import TestDeposition from integration.partial.test_deposition import TestDeposition
...@@ -21,7 +21,7 @@ def build_test_runner() -> TestSuite: ...@@ -21,7 +21,7 @@ def build_test_runner() -> TestSuite:
if __name__ == '__main__': if __name__ == '__main__':
_output_dir = sys.argv.pop() _output_dir = sys.argv.pop()
_tests = build_test_runner() _tests = build_test_runner()
_runner = HTMLTestRunner(output=_output_dir, combine_reports = True) _runner = HTMLTestRunner(output=_output_dir)
_result: TestResult = _runner.run(_tests) _result: TestResult = _runner.run(_tests)
if not _result.wasSuccessful(): if not _result.wasSuccessful():
sys.exit(1) sys.exit(1)
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