Closed timyhou closed 7 years ago
Hi guys! I found really helpful this plugging, however because of this issue I cannot use it. In case of failure in the fixture, test case marked as passed :(
@pytest.fixture
def test_fixture():
raise Exception("Oops")
@pytest.mark.usefixtures("test_fixture")
@flaky(max_runs=2)
class TestFlaky:
def test(self, test_fixture):
print("test executed")
assert False, 'Test 1 failed'
def test_2(self):
print("test 2 executed")
assert False, 'Test 2 failed'
Could you please let us know when it will be fixed?
Somewhat related to this issue which was supposedly resolved in Flaky 3.1.1
In the example below, something in flaky is causing the exception that is thrown inside the fixture not to be reported anymore.
The test results show that 3 tests were gathered but none were executed (which is true) but leaves no trace to the exception in the fixture.
If we remove the flaky decorator from the test class, the error is reported normally.