Plugin Command Line Options
Attention
Directory traversal is not allowed for path parameters! Also, paths should be relative.
They get evaluated relative to the rootdir determined by pytest.
- --pm-mismatch-style <diff|full>
Overrides the value of
pm-mismatch-styleconfiguration parameter.
- --pm-patterns-base-dir <DIR>
Specify the base directory to find expectation/pattern files. See also
pm-patterns-base-dir.
- --pm-reveal-unused-files
Reveal and print unused pattern files. If
PYTEST_MATCHER_RETURN_CODESenvironment variable is set to the true value (one of1,true,yes) and found any unused pattern files, the exit code will be1. The tests will not run.
- --pm-save-patterns
Write the captured output to the expectations file instead of performing actual tests. The option helps collect initial content to match in further tests and skips the test.