pytest2/doc/en
Jon Parise 8ac6dce2c7
Add shell-style wildcard support to 'testpaths' (#9897)
This is especially useful for large repositories (e.g. monorepos) that
use a hierarchical file system organization for nested test paths.

    src/*/tests

The implementation uses the standard `glob` module to perform wildcard
expansion in Config.parse().

The related logic that determines whether or not to include 'testpaths'
in the terminal header was previously relying on a weak heuristic: if
Config.args matched 'testpaths', then its value was printed. That
generally worked, but it could also print when the user explicitly used
the same arguments on the command-line as listed in 'testpaths'. Not a
big deal, but it shows that the check was logically incorrect.

Now that 'testpaths' can contain wildcards, it's no longer possible to
perform this simple comparison, so this change also introduces a public
Config.ArgSource enum and Config.args_source attribute that explicitly
names the "source" of the arguments: the command line, the invocation
directory, or the 'testdata' configuration value.
2022-05-24 10:20:51 +02:00
..
_templates Remove "Python 2.7 and 3.4 Support" from globaltoc 2022-05-16 22:52:27 +02:00
announce Prepare release version 7.1.2 (#9881) 2022-04-23 11:38:26 -03:00
example doc: Reformat/Modernize some code (#9900) 2022-04-28 16:30:16 +02:00
explanation Update goodpractices.rst 2022-04-16 15:51:21 +02:00
how-to doc: link to pytest-subtests 2022-05-12 12:20:00 +01:00
img Use transparent PNG for logo (#8159) 2020-12-16 11:19:45 -03:00
proposals Replace hardcoded links to PyPI with extlinks (#9224) 2021-10-22 09:47:57 -03:00
reference Add shell-style wildcard support to 'testpaths' (#9897) 2022-05-24 10:20:51 +02:00
Makefile fix #8818 - run regendoc without tox cachedir 2021-10-04 08:56:26 +02:00
adopt.rst Replace hardcoded links to Github issues with extlinks (#9234) 2021-11-06 11:16:11 +02:00
backwards-compatibility.rst Remove docs on Python 2.7 and 3.4 Support (#9957) 2022-05-16 10:17:18 +02:00
builtin.rst Prepare release version 7.1.2 (#9881) 2022-04-23 11:38:26 -03:00
changelog.rst Remove docs on Python 2.7 and 3.4 Support (#9957) 2022-05-16 10:17:18 +02:00
conf.py doc: remove django intersphinx mapping 2022-02-08 00:46:20 +02:00
conftest.py pre-commit run fix-encoding-pragma --all-files 2019-06-03 12:08:01 -03:00
contact.rst adding contact and badge for pytest-dev discord server (#9078) 2021-09-12 18:22:44 +01:00
contents.rst Remove docs on Python 2.7 and 3.4 Support (#9957) 2022-05-16 10:17:18 +02:00
contributing.rst Updated documentation from txt to rst 2015-08-04 16:41:02 +05:30
deprecations.rst Fix typo in deprecation documentation 2022-03-11 11:15:28 +01:00
development_guide.rst adopt main terminology in the configs 2021-03-09 22:35:34 +01:00
funcarg_compare.rst replace hardcoded urls to docs.pytest.org with internal crossrefs, add external crossrefs where possible 2021-10-04 00:23:41 +02:00
funcargs.rst fix line endings 2018-05-23 16:45:23 +02:00
getting-started.rst Prepare release version 7.1.2 (#9881) 2022-04-23 11:38:26 -03:00
historical-notes.rst replace hardcoded links to github pull requests with extlinks 2021-11-07 15:18:36 +01:00
history.rst Fix typos (#9424) 2021-12-27 09:23:15 -03:00
index.rst Update upcoming trainings (#9744) 2022-03-12 16:51:56 +01:00
license.rst Change copyright notice so yearly updates are not needed 2021-11-30 09:28:23 -03:00
naming20.rst Updated documentation from txt to rst 2015-08-04 16:41:02 +05:30
pytest.ini added "docs/en" directory and moved 2012-06-06 08:52:53 +09:00
recwarn.rst Add docs for the warnings functionality 2017-03-20 23:35:01 -03:00
requirements.txt temporarily pin jinja2 version for docs build 2022-04-08 17:08:30 -04:00
sponsor.rst fix typos in docs 2019-12-19 10:35:15 +01:00
talks.rst Update upcoming trainings (#9744) 2022-03-12 16:51:56 +01:00
tidelift.rst Update Tidelift docs with latest campaign 2019-10-24 14:58:58 -03:00
yieldfixture.rst Remove all version references to obsolete pytest versions 2019-04-28 12:37:58 -03:00