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

Run dependency tests #199

Open
GrebenshchikovArtem opened this issue Dec 23, 2022 · 1 comment
Open

Run dependency tests #199

GrebenshchikovArtem opened this issue Dec 23, 2022 · 1 comment

Comments

@GrebenshchikovArtem
Copy link

Hello. How i can rerun dependency tests?
For example:

@pytest.mark.dependency()
def test_1():

@pytest.mark.dependency(depends=['test_1'])
def test_2():

@pytest.mark.dependency(depends=['test_2'])
def test_3():

if fail test_3, how i can rerun all dependency tests(test_1, test_2, test_3)?

@icemac
Copy link
Contributor

icemac commented Jan 19, 2023

Currently there is no way to achieve this. I did not even know about that @pytest.mark.dependency() decorator. I feel it is out of scope for this project to support rerunning tests which did not actually fail.

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