File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ Martin K. Scherer
88
88
Martin Prusse
89
89
Matt Bachmann
90
90
Matt Williams
91
+ Matthias Hafner
91
92
Michael Aquilina
92
93
Michael Birtwell
93
94
Michael Droettboom
Original file line number Diff line number Diff line change @@ -248,7 +248,8 @@ time or change existing behaviors in order to make them less surprising/more use
248
248
249
249
* Refined logic for determining the ``rootdir ``, considering only valid
250
250
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.
252
253
253
254
* Always include full assertion explanation. The previous behaviour was hiding
254
255
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
420
421
.. _@tramwaj29 : https://github.com/tramwaj29
421
422
.. _@txomon : https://github.com/txomon
422
423
.. _@Vogtinator : https://github.com/Vogtinator
424
+ .. _@matthiasha : https://github.com/matthiasha
423
425
424
426
425
427
2.9.2
Original file line number Diff line number Diff line change @@ -48,6 +48,16 @@ Here is the algorithm which finds the rootdir from ``args``:
48
48
directory. This allows to work with pytest in structures that are not part of
49
49
a package and don't have any particular ini-file configuration.
50
50
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
+
51
61
Note that an existing ``pytest.ini `` file will always be considered a match,
52
62
whereas ``tox.ini `` and ``setup.cfg `` will only match if they contain a
53
63
``[pytest] `` or ``[tool:pytest] `` section, respectively. Options from multiple ini-files candidates are never
You can’t perform that action at this time.
0 commit comments