Is it possible to use Nose to run one test multiple times, concurrently?

后端 未结 2 698
情书的邮戳
情书的邮戳 2021-02-14 15:44

Is it possible to use nose to run a single test concurrently (across multiple processes) and aggregate the result in to a single pass/fail result?

We ha

2条回答
  •  一整个雨季
    2021-02-14 16:27

    This seems like something you want in the test definition itself because you want to assert on the aggregation of the results. I would take a look at using multiprocessing in the test. Create a pool to execute your code in parallel. You can use a Queue to aggregate the results.

提交回复
热议问题