pytest-repeat
pytest-repeat copied to clipboard
how to run test with orders in pytest-repeat
here is my scenario :
@pytest.mark.order1
def test_module_A():
print("1.1 test_module_A...")
pass
@pytest.mark.order2
def test_module_B():
print("1.2 test_module_B...")
pass
@pytest.mark.order3
def test_module_C():
print("1.2 test_module_C...")
pass
when I run test with following command: pytest -vv --count=2
results:
test_module_A
test_module_A
test_module_B
test_module_B
test_module_C
test_module_C
but I expect result is
test_module_A
test_module_B
test_module_C
test_module_A
test_module_B
test_module_C
any suggestions?