allankp / pytest-testrail

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

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 2 years ago

vk765 commented 2 years ago

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 commented 2 years ago

Definitely interested in this functionality.