以下のように、pytest paramatrize テストを次々に実行できます。
@pytest.mark.parametrize("asetup", ['a1','a2'])
@pytest.mark.parametrize("bsetup", ['b1','b2'])
ここに 4 つのシナリオがあります。その後、すべてを並行して実行できますか?
<Function 'test_1[b1-a1]'>
<Function 'test_1[b1-a2]'>
<Function 'test_1[b2-a1]'>
<Function 'test_1[b2-a2]'>
xdist を使用してみましたが、それでも次々と実行されます。
py.test -d --tx 3*popen//python=python2.7 tests_suite.py -vv -k 'test_1' -s
からに変更scope
しmodule
ましたがfunction
、それらが並行して実行されているようには見えません。
@pytest.fixture(scope="function")