0
  1. In a single file: test.py, I have 3 test functions: test1(), test2(), test3(). Does pytest and pytest-benchmark run these 3 test cases in parallel or in serial?

  2. I have 3 files: test1.py, test2.py, test3.py. Respectively, I have a single test function in each file: test1(), test2(), test3(). Are these 3 tests run in parallel or in serial, if I simply run pytest or pytest-benchmark in the directory they are in?

AgnosticCucumber
  • 616
  • 1
  • 7
  • 21
  • Neither `pytest` nor `pytest-benchmark` run anything in parallel, everything is executed sequentially. – hoefling Jun 19 '19 at 08:07

2 Answers2

1

according to responses from crosspost on Reddit and the comments above,

pytest and pytest-benchmark always run in serial.

AgnosticCucumber
  • 616
  • 1
  • 7
  • 21
0

pytest and pytest-benchmark always run in serial . can run the file from main folder terminal This will help you