Plugin Command Line Options

Attention

Directory traversal is not allowed for path parameters and paths must be relative. They are evaluated relative to the rootdir determined by pytest.

--pm-mismatch-style <diff|full>

Override the value of the pm-mismatch-style configuration parameter.

--pm-patterns-base-dir <DIR>

Base directory used for storing pattern files. See also pm-patterns-base-dir.

--pm-reveal-unused-files

Reveal and print unused pattern files. If the environment variable PYTEST_MATCHER_RETURN_CODES is set to a true value (one of 1, true, yes) and any unused pattern files are found, the exit code will be 1. Tests will not run.

--pm-save-patterns

Save captured output to pattern files and skip the test. Use this option to collect initial content for future comparisons.