Comments (3)
All options to pytest need to be passed through the --addopts
parameter. e.g.
python setup.py pytest --addopts='-v'
The options to ptr (or the distutils pytest
command) are especially constrained, which is why all arguments passed through to pytest need to be in a single argument.
from pytest-runner.
All options to pytest need to be passed through the --addopts parameter.
I know, that that's possible, but I doubt it should be so in this particular case. Some other plugins reuse this global option to control output.
from pytest-runner.
I see. You're suggesting that pytest-runner
should use the --verbose
option to the distutils command and relay that to the pytest invocation.
I don't think we want to introduce this behavior. It adds complexity to the code and use-cases (considering what should happen if one passes -v
to distutils but then -q
to pytest, or -v
to both).
I think it's better to maintain the separation of concerns, so -v
to the distutils command applies to output of the distutils commands and -v
to the pytest invocation applies to the output of the pytest run, and the two have no interaction. In this way, it clear where options should go to create verbose output for one or the other command, and you have to specify -v
twice if you want both to be verbose.
So I'm strongly inclined to go wontfix on this one, but if you can provide a compelling case where you would gain a lot of value from the pytest run adopting the verbosity setting from the distutils command, then please share it here and I'll reconsider.
from pytest-runner.
Related Issues (20)
- [Py3.3] AttributeError: type object 'test' has no attribute 'install_dists' HOT 6
- Declare Setuptools dependency HOT 4
- Fails to download from pypi.org HOT 4
- setup.py uses obsolete setup_requires HOT 2
- Declarative config breaks installs for old setuptools HOT 9
- Using test=pytest in setup.cfg gives "ModuleNotFoundError: No module named 'ptr'" HOT 2
- extras argument can't be set to False in setup.cfg HOT 1
- Support setup.py test arguments HOT 2
- Using setup_requires(['pytest-runner']) gives pkg_resources.DistributionNotFound: The 'pytest-runner' distribution was not found and is required by the application HOT 6
- Version 5.0 causes pkg_resources.DistributionNotFound HOT 9
- setup.py test is going to be deprecated HOT 5
- Please leave PYTHONPATH alone / provide a way to override your code that modifies it HOT 16
- .whl file in pypi.org contains underscore instead of dash HOT 3
- 5.2: test suite is failing HOT 5
- How do I setup pytest-runner correctly HOT 1
- 5.3.1: sphinx 4.0.3 warning HOT 2
- flake8 safety reports error HOT 4
- set development status to inactive 7
- 6.0.0: pytest is failing in two units HOT 10
- Make a new "inactive" release and archive the repository HOT 2
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-runner.