You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that if I set the mark like the above code, It can't stop retry when after the first run. It shows that the condition does not evaluate in real time but before the case was run.
But I think it's better if the condition evaluates in real time, because it let me able to control the retry on runtime. For example, if the number of failed cases reaches a certain number, then retry the following failed cases.
And the@pytest.mark.skipif(condition="bool",reason="xxx") evaluates in real time.
The text was updated successfully, but these errors were encountered:
I found that if I set the mark like the above code, It can't stop retry when after the first run. It shows that the
condition
does not evaluate in real time but before the case was run.But I think it's better if the condition evaluates in real time, because it let me able to control the retry on runtime. For example, if the number of failed cases reaches a certain number, then retry the following failed cases.
And the
@pytest.mark.skipif(condition="bool",reason="xxx")
evaluates in real time.The text was updated successfully, but these errors were encountered: