Comments (4)
I struggled to make pytest-watch
work so I built an alternative tool if anyone is interested:
https://github.com/olzhasar/pytest-watcher
from pytest-watch.
I've been using watchexec as a more general watcher, since pytest-watch no longer works for me.
(This was before I saw @olzhasar 's https://github.com/olzhasar/pytest-watcher, which looks great for python-only use cases, so definitely worth checking that out.)
One downside of watchexec
is that it struggles with pytest's --pdb
(watchexec/watchexec#209) — possibly due to pytest rather than watchexec — I'll check out pytest-watcher
as a possible fix for that.
from pytest-watch.
Please excuse if this message is off-topic.
I tried running both pytest-watch and pytest-watcher with my Django project and both of them failed: a special settings_test.py
that in turn imports from settings.py
could not be imported correctly whereas pytest on its own runs perfectly fine.
I ended up installing entr and used it to run the test from a subdir without any errors:
$ cd tests/subdir
$ ls | entr pytest -x -v
Hope this helps anyone looking for a quick solution to runing pytest in watch mode.
from pytest-watch.
This is seeming very abandoned at this point 😢
There has been no activity in this repo for almost 4 years.
The author's last activity on github was nearly a year ago, and completely unrelated to this project.
from pytest-watch.
Related Issues (20)
- broken link in the README: saythanks
- How to use with poetry? HOT 3
- Run ptw with -s HOT 3
- pytest watch seems to fail when pyproject.toml is used as a config file HOT 7
- Logging error when running pytest in pytest-watch HOT 1
- Integration with pytest-cov HOT 2
- My ptw doesn't "watch" subdirectories
- Running from "python -m pytest_watch" does not add current path to PYTHONPATH HOT 1
- ignore `Client.dataset is deprecated` warnings
- pytest 7.0: AttributeError: 'dict' object has no attribute 'config' HOT 3
- error:'str' object has no attribute 'plate_num'
- Specify `python_requires` in the distribution package metadata
- Runner argument not parsed correctly on windows
- Error in Python 3.10: `module 'collections' has no attribute 'MutableSet'` HOT 5
- `ImportError` when running tests using `ptw` HOT 2
- Directories passed to pytest-watch are also passed to pytest, but shouldn't be
- sdist is missing LICENSE
- When I install pytest-watch with Python 3.11 and pip 22.3.1 I see deprecation warning HOT 1
- GO TO PYTEST-WATCHER HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytest-watch.