pytest-dev / pytest-dev/pytest-xdist
Improve --looponfail watcher speed
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 287
- Avg merge
- 9h 30m
- Merged PRs (30d)
- 2
Description
I found that the rerunning of tests with --looponfail was a bit slow. Could we do something similar to how django runserver autoreload does it using pywatchman?
What do you think using pywatchman to write an alternative implementation of https://github.com/pytest-dev/pytest-xdist/blob/a630e55887717b0c3fec078680ae861f78acf6fe/src/xdist/looponfail.py#L223
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 reading src/xdist/looponfail.py around line 223 and compare its watcher with Django's autoreload implementation using pywatchman. The work is complete when looponfail has an alternative pywatchman-based watcher that improves the speed of test reruns.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devtools, testing-qa
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100