-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for environmetal variables in testpaths #3405
Comments
Doesn't |
It doesn't because we have several project where we want to run pytest. Therefore we need to to define a configuration specific to a project. |
@gzpac this is pretty much a hack to set testpaths to a installed package name, instead of allowing env vars there i would rather have support to list an actual package name then it would be something like
for example (we really should find a better way to spell it out tho) |
@RonnyPfannschmidt That would work for me. You can even constrain it to installed packages, i.e. something like |
@gzpac it seems your question have been answered so I'm closing this. Feel free to follow up with further questions though. |
It would be nice to be able to use environmental variables for testpaths parameters.
So that I could write:
testpaths = $MY_VIRTUAL_ENV/usr/lib64/python2.7/my_lib/ (coverage style)
or
testpaths = {env:MY_VIRTUAL_ENV}/usr/lib64/python2.7/my_lib/ (tox style)
pytest version: 3.2.1
python version: cpython 2.7
OS: opensuse 12
The text was updated successfully, but these errors were encountered: