Can Python's unittest test in parallel, like nose can?

后端 未结 7 1135
小蘑菇
小蘑菇 2020-12-01 01:53

Python\'s NOSE testing framework has the concept of running multiple tests in parallel.

The purpose of this is not to test concurrency in the code, but to make test

7条回答
  •  离开以前
    2020-12-01 02:21

    Please use pytest-xdist, if you want parallel run.

    The pytest-xdist plugin extends py.test with some unique test execution modes:

    • test run parallelization: if you have multiple CPUs or hosts you can use those for a combined test run. This allows to speed up development or to use special resources of remote machines.

    [...]

    More info: Rohan Dunham's blog

提交回复
热议问题