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

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

Open vk765 opened this issue 4 years ago • 1 comments

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

vk765 avatar Feb 10 '22 18:02 vk765

Definitely interested in this functionality.

SiddChugh avatar Sep 01 '22 19:09 SiddChugh