File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed 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
+ ``py.test --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