pytest-repeat icon indicating copy to clipboard operation
pytest-repeat copied to clipboard

how to run test with orders in pytest-repeat

Open jeffsui opened this issue 7 years ago • 0 comments

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?

jeffsui avatar May 14 '18 06:05 jeffsui