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 @@ -78,6 +78,7 @@ Martijn Faassen
78
78
Martin Prusse
79
79
Martin K. Scherer
80
80
Matt Bachmann
81
+ Matthias Hafner
81
82
Michael Aquilina
82
83
Michael Birtwell
83
84
Michael Droettboom
Original file line number Diff line number Diff line change 38
38
39
39
* Refined logic for determining the ``rootdir ``, considering only valid
40
40
paths which fixes a number of issues: `#1594 `_, `#1435 `_ and `#1471 `_.
41
- Thanks to `@blueyed `_ and `@davehunt `_ for the PR.
41
+ Updated the documentation according to current behavior. Thanks to
42
+ `@blueyed `_, `@davehunt `_ and `@matthiasha `_ for the PR.
42
43
43
44
* Always include full assertion explanation. The previous behaviour was hiding
44
45
sub-expressions that happened to be False, assuming this was redundant information.
126
127
.. _@Stranger6667 : https://github.com/Stranger6667
127
128
.. _@taschini : https://github.com/taschini
128
129
.. _@Vogtinator : https://github.com/Vogtinator
130
+ .. _@matthiasha : https://github.com/matthiasha
129
131
130
132
131
133
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] `` section. Options from multiple ini-files candidates are never
You can’t perform that action at this time.
0 commit comments