Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sus-pe committed Feb 1, 2025
1 parent f914d5b commit 9cf63a9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/en/reference/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1720,7 +1720,7 @@ passed multiple times. The expected format is ``name=value``. For example::
[seq] matches any character in seq
[!seq] matches any char not in seq

Default patterns are ``'*.egg'``, ``'.*'``, ``'_darcs'``, ``'build'``,
Default patterns are ``'*.egg'``, ``'.*'``, ``'_darcs'``,
``'CVS'``, ``'dist'``, ``'node_modules'``, ``'venv'``, ``'{arch}'``.
Setting a ``norecursedirs`` replaces the default. Here is an example of
how to avoid certain directories:
Expand All @@ -1742,6 +1742,9 @@ passed multiple times. The expected format is ``name=value``. For example::
*must* override ``norecursedirs`` in addition to using the
``--collect-in-virtualenv`` flag.

Similarly, pytest will attempt to intelligently identify and igmore build
artifacts of a setuptools project unless ``--collect-in-build`` is used.


.. confval:: python_classes

Expand Down Expand Up @@ -2132,6 +2135,8 @@ All the command-line flags can be obtained by running ``pytest --help``::
--keep-duplicates Keep duplicate tests
--collect-in-virtualenv
Don't ignore tests in a local virtualenv directory
--collect-in-build
Don't ignore tests in a local build directory
--import-mode={prepend,append,importlib}
Prepend/append to sys.path when importing test
modules and conftest files. Default: prepend.
Expand Down

0 comments on commit 9cf63a9

Please sign in to comment.