Skip to content

Commit 745c8c1

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents b85a3b0 + 5ecf3d7 commit 745c8c1

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ Martin K. Scherer
8888
Martin Prusse
8989
Matt Bachmann
9090
Matt Williams
91+
Matthias Hafner
9192
Michael Aquilina
9293
Michael Birtwell
9394
Michael Droettboom

CHANGELOG.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ time or change existing behaviors in order to make them less surprising/more use
248248

249249
* Refined logic for determining the ``rootdir``, considering only valid
250250
paths which fixes a number of issues: `#1594`_, `#1435`_ and `#1471`_.
251-
Thanks to `@blueyed`_ and `@davehunt`_ for the PR.
251+
Updated the documentation according to current behavior. Thanks to
252+
`@blueyed`_, `@davehunt`_ and `@matthiasha`_ for the PR.
252253

253254
* Always include full assertion explanation. The previous behaviour was hiding
254255
sub-expressions that happened to be False, assuming this was redundant information.
@@ -420,6 +421,7 @@ time or change existing behaviors in order to make them less surprising/more use
420421
.. _@tramwaj29: https://github.com/tramwaj29
421422
.. _@txomon: https://github.com/txomon
422423
.. _@Vogtinator: https://github.com/Vogtinator
424+
.. _@matthiasha: https://github.com/matthiasha
423425

424426

425427
2.9.2

doc/en/customize.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ Here is the algorithm which finds the rootdir from ``args``:
4848
directory. This allows to work with pytest in structures that are not part of
4949
a package and don't have any particular ini-file configuration.
5050

51+
If no ``args`` are given, pytest collects test below the current working
52+
directory and also starts determining the rootdir from there.
53+
54+
:warning: custom pytest plugin commandline arguments may include a path, as in
55+
``pytest --log-output ../../test.log args``. Then ``args`` is mandatory,
56+
otherwise pytest uses the folder of test.log for rootdir determination
57+
(see also `issue 1435 <https://github.com/pytest-dev/pytest/issues/1435>`_).
58+
A dot ``.`` for referencing to the current working directory is also
59+
possible.
60+
5161
Note that an existing ``pytest.ini`` file will always be considered a match,
5262
whereas ``tox.ini`` and ``setup.cfg`` will only match if they contain a
5363
``[pytest]`` or ``[tool:pytest]`` section, respectively. Options from multiple ini-files candidates are never

0 commit comments

Comments
 (0)