pytest & pytest-benchmark:串行还是并行?
pytest & pytest-benchmark: serial or parallel?
在单个文件中:test.py
,我有 3 个测试函数:test1()
、test2()
、test3()
。 pytest
和pytest-benchmark
运行这3个测试用例是并行还是串行?
我有 3 个文件:test1.py
、test2.py
、test3.py
。分别地,我在每个文件中都有一个测试函数:test1()
、test2()
、test3()
。如果我只是在它们所在的目录中 运行 pytest
或 pytest-benchmark
,这 3 个测试 运行 是并行还是串行?
根据 Reddit 上的 responses from crosspost 和上面的评论,
pytest
和 pytest-benchmark
总是 运行 连续。
在单个文件中:
test.py
,我有 3 个测试函数:test1()
、test2()
、test3()
。pytest
和pytest-benchmark
运行这3个测试用例是并行还是串行?我有 3 个文件:
test1.py
、test2.py
、test3.py
。分别地,我在每个文件中都有一个测试函数:test1()
、test2()
、test3()
。如果我只是在它们所在的目录中 运行pytest
或pytest-benchmark
,这 3 个测试 运行 是并行还是串行?
根据 Reddit 上的 responses from crosspost 和上面的评论,
pytest
和 pytest-benchmark
总是 运行 连续。