Use a separate test setup phase written in python

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • 4.12
    • Affects Version/s: None
    • Component/s: None
    • Python Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      We currently use https://github.com/mongodb/mongo-python-driver/blob/master/.evergreen/run-tests.sh to handle the setup and execution of tests. It is awkward and does not exhibit separation of concerns. Once we implement hatch environments in PYTHON-4483, we can create environments for each combination of extras, and scripts within those environments as needed.

      The handling of database username and password can be moved to https://github.com/mongodb/mongo-python-driver/blob/master/test/conftest.py, and external setup functions like kinit and encryption setup can be moved to separate scripts.

      Definition of done

      Replace usage of run-tests.sh with hatch environments and pytest config.

      Pitfalls

      None

              Assignee:
              Steve Silvester
              Reporter:
              Steve Silvester
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: