Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it a way to mark testrail test as failed if even one test from pytest.mark.parametrize has been failed? #156

Open
vk765 opened this issue Feb 10, 2022 · 1 comment

Comments

@vk765
Copy link

vk765 commented Feb 10, 2022

Hi, guys.

Let's imagine I have 1 test case with different parameters:
@pytestrail.case('C11')
@pytest.mark.parametrize('number1,number2', [(1, 2), (1, 3)])
def test_sum(number1, number2):
assert number1 + number2 == 4

In test rail I get failed and passed results. And the whole test case is marked as "passed".
Could you add the possibility to mark whole test case as failed if there is even one failed test from pytest.mark.parametrize, please?

p.s.
I know that I can create different test cases in testrail and mark them separately, but I would like to have described one scenario with different parameters that is related to the single Testrail test case

@SiddChugh
Copy link

Definitely interested in this functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants