-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
2.8.2 - specific test not running if custom parameter is used #1183
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
Comments
please use a gist |
I'm not sure if I can put full directory structure to the gist, so I have set-up new repository. Please can you
Thanks |
as far as i can tell this is related to changes on when deep conftests are considered |
Not sure if I understand correctly, but I have only one
If I need to use Thanks |
the plugin would be a self-made python module with the addoption hook |
I'm sorry, but I still do not understand. ./args/args.py (where running: ends with
(not Python expert, so I guess I'm doing something wrong ;-) ) As I mentioned above, why is it necessary to make any module or plugin. The use case is:
Yes, it looks like that when specific test is in a
vs
Thanks. |
After investigation, I have found workaround:
Still have feeling something is broken. The use case from previous message seems quite obvious scenario (run specific test in directory and use custom option specified in top |
That's because the You should be able to work around this by using: py.test -v -c conftest.py t1/t1_test.py::TestT1::test_t1 --dry-run But then the question also is why you have two It would be great if you could provide feedback on the documentation / behavior change/fixes at #1621. |
Hello, thanks for the reply. Yes, removing suggested
I can use (from my view issue can be closed as I understand now new behavior of rootdir discovery) |
Thanks |
In pytest 2.8.2, when single test is specified with optional parameter, the test will not run.
Runs OK:
Does not run:
error:
(
--dry-run
is custom parameter fromconftest.py
)This scenario is working with pytest 2.7.3
The source code can be found here:
https://mega.nz/#!hR1ABCIT!lSLEoWMCOUn1pDziFSu0qxh3AMcLVuNtUA6FpRVh_Zs
to reproduce, unpack tgz and try steps above with
pytest 2.8.2
(fails) and then withpytest 2.7.3
(OK)Is this a pytest issue or something wrong in my test structure/parameter handling?
Thanks.
The text was updated successfully, but these errors were encountered: