@@ -1720,7 +1720,7 @@ passed multiple times. The expected format is ``name=value``. For example::
1720
1720
[seq] matches any character in seq
1721
1721
[!seq] matches any char not in seq
1722
1722
1723
- Default patterns are ``'*.egg' ``, ``'.*' ``, ``'_darcs' ``, `` 'build' ``,
1723
+ Default patterns are ``'*.egg' ``, ``'.*' ``, ``'_darcs' ``,
1724
1724
``'CVS' ``, ``'dist' ``, ``'node_modules' ``, ``'venv' ``, ``'{arch}' ``.
1725
1725
Setting a ``norecursedirs `` replaces the default. Here is an example of
1726
1726
how to avoid certain directories:
@@ -1742,6 +1742,9 @@ passed multiple times. The expected format is ``name=value``. For example::
1742
1742
*must * override ``norecursedirs `` in addition to using the
1743
1743
``--collect-in-virtualenv `` flag.
1744
1744
1745
+ Similarly, pytest will attempt to intelligently identify and igmore build
1746
+ artifacts of a setuptools project unless ``--collect-in-build `` is used.
1747
+
1745
1748
1746
1749
.. confval :: python_classes
1747
1750
@@ -2132,6 +2135,8 @@ All the command-line flags can be obtained by running ``pytest --help``::
2132
2135
--keep-duplicates Keep duplicate tests
2133
2136
--collect-in-virtualenv
2134
2137
Don't ignore tests in a local virtualenv directory
2138
+ --collect-in-build
2139
+ Don't ignore tests in a local build directory
2135
2140
--import-mode={prepend,append,importlib}
2136
2141
Prepend/append to sys.path when importing test
2137
2142
modules and conftest files. Default: prepend.
0 commit comments