Switch to pytest

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.5
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      unittest-xml-reporting has been unmaintained for over a year and is incompatible with Python 3.12. We should switch to using pytest as our test runner, which has built in support for xml output.

       [2023/06/06 02:16:18.262] Traceback (most recent call last):
       [2023/06/06 02:16:18.262]   File "<string>", line 1, in <module>
       [2023/06/06 02:16:18.262]   File "/opt/python/3.12/lib/python3.12/site-packages/xmlrunner/__init__.py", line 11, in <module>
       [2023/06/06 02:16:18.262]     from .runner import XMLTestRunner
       [2023/06/06 02:16:18.262]   File "/opt/python/3.12/lib/python3.12/site-packages/xmlrunner/runner.py", line 6, in <module>
       [2023/06/06 02:16:18.262]     from .unittest import TextTestRunner, TestProgram
       [2023/06/06 02:16:18.262]   File "/opt/python/3.12/lib/python3.12/site-packages/xmlrunner/unittest.py", line 8, in <module>
       [2023/06/06 02:16:18.262]     from unittest import TestResult, _TextTestResult
       [2023/06/06 02:16:18.262] ImportError: cannot import name '_TextTestResult' from 'unittest' (/opt/python/3.12/lib/python3.12/unittest/__init__.py). Did you mean: 'TextTestResult'?
      

              Assignee:
              Noah Stapp
              Reporter:
              Steve Silvester
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: