-
-
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
ini configuration are not found in subdirectories when specifying tests with :: #2148
Labels
type: bug
problem that needs to be addressed
Comments
pelme
added a commit
to pelme/pytest
that referenced
this issue
Dec 20, 2016
pelme
added a commit
to pelme/pytest
that referenced
this issue
Dec 20, 2016
pelme
added a commit
to pelme/pytest
that referenced
this issue
Dec 27, 2016
pelme
added a commit
to pelme/pytest
that referenced
this issue
Dec 27, 2016
…ains ::. This commit also improves readbility in get_dirs_from_args by using self documenting local functions. get_dirs_from_args also now only returns directories that actually exists, and not files to avoid confusion. This commit also removes redundant checks in get_common_ancestor that was already performed in get_dirs_from_args..
pelme
added a commit
to pelme/pytest
that referenced
this issue
Dec 27, 2016
…ains ::. This commit also improves readbility in get_dirs_from_args by using self documenting local functions. get_dirs_from_args also now only returns directories that actually exists, and not files to avoid confusion. This commit also removes redundant checks in get_common_ancestor that was already performed in get_dirs_from_args..
pelme
added a commit
to pelme/pytest
that referenced
this issue
Dec 27, 2016
…ains ::. This commit also improves readbility in get_dirs_from_args by using self documenting local functions. get_dirs_from_args also now only returns directories that actually exists, and not files to avoid confusion. This commit also removes redundant checks in get_common_ancestor that was already performed in get_dirs_from_args..
pelme
added a commit
to pelme/pytest
that referenced
this issue
Dec 27, 2016
…ains ::. This commit also improves readbility in get_dirs_from_args by using self documenting local functions. get_dirs_from_args also now only returns directories that actually exists, and not files to avoid confusion. This commit also removes redundant checks in get_common_ancestor that was already performed in get_dirs_from_args..
pelme
added a commit
to pelme/pytest
that referenced
this issue
Dec 27, 2016
…ains ::. This commit also improves readbility in get_dirs_from_args by using self documenting local functions. get_dirs_from_args also now only returns directories that actually exists, and not files to avoid confusion. This commit also removes redundant checks in get_common_ancestor that was already performed in get_dirs_from_args..
pelme
added a commit
to pelme/pytest
that referenced
this issue
Dec 27, 2016
…ains ::. This commit also improves readbility in get_dirs_from_args by using self documenting local functions. get_dirs_from_args also now only returns directories that actually exists, and not files to avoid confusion. This commit also removes redundant checks in get_common_ancestor that was already performed in get_dirs_from_args..
This was referenced Jan 22, 2017
This was referenced Feb 21, 2018
This was referenced Mar 5, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a pytest.ini exists in a subdirectory (i.e.
subdir/pytest.ini
), it gets picked parsed and used when invoking pytest withpytest subdir
rather than using apytest.ini
in the root directory.However, when specifying a test with double colons (
::
) on the command line likepytest subdir/test_foo.py::test_foo
thesubdir/pytest.ini
configuration files is not used.The text was updated successfully, but these errors were encountered: