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

后端 未结 7 1138
小蘑菇
小蘑菇 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

    Another option that might be easier, if you don't have that many test cases and they are not dependent, is to kick off each test case manually in a separate process.

    For instance, open up a couple tmux sessions and then kick off a test case in each session using something like:

    python -m unittest -v MyTestModule.MyTestClass.test_n
    

提交回复
热议问题