pytest-dev / pytest-dev/pytest-timeout
Mark test as xfail for timeout (only)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 258
- Forks
- 69
- PR merge metrics
- No merged PRs in 30d
Description
It might be just a matter of documentation but I failed to find: how to mark test for xfail only if it times out (but still fail otherwise) and ideally only for some other condition (e.g. if on_nfs bool var set).
Thank you in advance!
Contributor guide
No contributing guide indexed for this repository
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
Start by reviewing the pytest-timeout documentation and pytest's xfail behavior. Document how to mark a test as expected to fail only on timeout, while preserving failures for other causes and optionally applying the behavior under a condition such as an on_nfs variable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation, testing
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100