How to speed up pytest

前端 未结 7 673
醉梦人生
醉梦人生 2020-12-09 01:14

Is there some way to speed up the repeated execution of pytest? It seems to spend a lot of time collecting tests, even if I specify which files to execute on th

7条回答
  •  难免孤独
    2020-12-09 01:42

    With xdist you can parallelize pytest runs. It allows even to ship tests to remote machines. Depends on your setup it can speedup quite a bit :)

提交回复
热议问题