pytest-dev / pytest-dev/pytest-rerunfailures
Add support to re-run pytest parametrize on retry
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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