In a single file:
test.py
, I have 3 test functions:test1()
,test2()
,test3()
. Doespytest
andpytest-benchmark
run these 3 test cases in parallel or in serial?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 runpytest
orpytest-benchmark
in the directory they are in?
Asked
Active
Viewed 922 times
0

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 Answers
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