pytest-dev / pytest-dev/pytest-rerunfailures

Run dependency tests

Open
#199 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
477
Forks
107
Avg merge
2d 14h
Merged PRs (30d)
21

Description

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)?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the dependency chain shown in the issue, using test_1, test_2, and test_3 with their dependency markers. Review how the plugin handles a failure in test_3 and define the expected rerun behavior for the full chain before identifying the relevant implementation and tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.