Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-4558

Fix coverage and XML results for async tests

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

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      In PYTHON-4520 we made the async tests run by default like this:

          python -m pytest -v --capture=tee-sys --durations=5 --maxfail=10 $TEST_ARGS
          python -m pytest -v --capture=tee-sys --durations=5 --maxfail=10 test/asynchronous/ $TEST_ARGS
      

      There are two problems with this approach:

      1. Running pytest twice produces 2 independent XML and coverage files, where the second one overwrites the first.
      2. In test suites where we pass a python file via TEST_ARGS, the suite gets run twice, first on it's own and then a second time with test/asynchronous.

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: