6

Im trying to run pytests in parallel across my selenium grid using pytest-xdist. Prior to using pytest-xdist, I had one time setup being executed once before all tests even started using the pytest_sessionstart hook. It worked perfectly. It would be the first thing that ran and no tests would start until it was finished. Once I attempted to use pytest-xdist all my session scoped hooks like pytest_sessionstart and pytest_sessionfinish are being executed multiple times. What am I not understanding or doing wrong?

MrBean Bremen
  • 14,916
  • 3
  • 26
  • 46
JerryBringer
  • 150
  • 1
  • 1
  • 8

0 Answers0