pytest-dev / pytest-dev/pytest-rerunfailures

Add support to re-run pytest parametrize on retry

Open
#149 2 comments 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

Hi I have an issue when using pytest parametrize plugin. My test need parametrize plugin to generate current timestamp on runtime. But it seems that pytest-rerunfailures only use latest timestamp, instead of generate new parametrize in order to re-generate new timestamp. Is is possible to add this feature?

@pytest.mark.parametrize(argnames="timestamp", argvalues=generate_timestamp()

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

No file, test, or entry point is named. Start by examining how pytest-rerunfailures invokes retries and how pytest evaluates the parametrization expression; define whether each retry should create new parameters and add a test that verifies timestamp regeneration is complete.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.