allankp / pytest-testrail

pytest plugin for integration with TestRail, for creating testruns and updating results
MIT License
95 stars 125 forks source link

Any way to use it with parametrized fixtures? #94

Closed uscengineer closed 4 years ago

uscengineer commented 5 years ago

I use parametrized fixtures to run the same test using different sets of data. Each is a different test case in test rail. Anyway to do use this to do that?

tolstislon commented 5 years ago

Maybe

@pytest.mark.parametrize('data', [
    pytest.param(1, marks=pytestrail.case('C10')),
    pytest.param(0, marks=pytestrail.case('C11'))
])
def test_three(data):
    assert data
allankp commented 4 years ago

Closing as no response from OP