Comments (8)
This is how pytest
works, right?
I was actually thinking something similar. Except instead of taking specific arguments, have pytest-watch
take any argument and just pass the unsupported ones along to pytest
. That'll keep things simple and make sure that all pytest
options are supported.
Does that make sense?
from pytest-watch.
Although hmm, pytest-watch
still needs to know where to watch. Let me think more about this.
from pytest-watch.
Don't mind the dumb --pytest-options
in my patch. This is a temporal code just for me.
Becoming a plugin will solve the option-passing problem, IMHO.
from pytest-watch.
Gotcha. Yeah, agreed.
Thinking about it more, I think your solution is pretty elegant. Would you be interested in pulling latest and applying your changes to that? I made a comment in your commit. Other than that, I'll pull it in if you do make a PR against the latest.
The only things left would be to forward the pytest
options (for those who want to continue using the ptw
program), and to create a proper Pytest plugin, which I do agree this would be useful. I can open issues for theses.
from pytest-watch.
ok I'll try.
from pytest-watch.
from pytest-watch.
Released pytest-watch 3.0.0 today, which includes the fix from #11.
Be sure to pip install --upgrade pytest-watch
!
from pytest-watch.
👍
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
- Maintenance Status? HOT 4
- 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.