@@ -1754,7 +1754,7 @@ passed multiple times. The expected format is ``name=value``. For example::
1754
1754
[seq] matches any character in seq
1755
1755
[!seq] matches any char not in seq
1756
1756
1757
- Default patterns are ``'*.egg' ``, ``'.*' ``, ``'_darcs' ``, `` 'build' ``,
1757
+ Default patterns are ``'*.egg' ``, ``'.*' ``, ``'_darcs' ``,
1758
1758
``'CVS' ``, ``'dist' ``, ``'node_modules' ``, ``'venv' ``, ``'{arch}' ``.
1759
1759
Setting a ``norecursedirs `` replaces the default. Here is an example of
1760
1760
how to avoid certain directories:
@@ -1776,6 +1776,9 @@ passed multiple times. The expected format is ``name=value``. For example::
1776
1776
*must * override ``norecursedirs `` in addition to using the
1777
1777
``--collect-in-virtualenv `` flag.
1778
1778
1779
+ Similarly, pytest will attempt to intelligently identify and igmore build
1780
+ artifacts of a setuptools project unless ``--collect-in-build `` is used.
1781
+
1779
1782
1780
1783
.. confval :: python_classes
1781
1784
@@ -2163,6 +2166,8 @@ All the command-line flags can be obtained by running ``pytest --help``::
2163
2166
--keep-duplicates Keep duplicate tests
2164
2167
--collect-in-virtualenv
2165
2168
Don't ignore tests in a local virtualenv directory
2169
+ --collect-in-build
2170
+ Don't ignore tests in a local build directory
2166
2171
--import-mode={prepend,append,importlib}
2167
2172
Prepend/append to sys.path when importing test
2168
2173
modules and conftest files. Default: prepend.
0 commit comments