List filtering¶
Warning
This component is not activated by default.
Why do we need it?¶
While testing for file, you may find yourself in a situation where you only want to test subject which matches a given pattern. That’s what this component do.
How does it work?¶
We scan the list against the given pattern/regex and only test those who match it.
How to use it?¶
You can simply change
cli_testing:
# Sets the filter to apply while reading the given input.
# For example, if you give `\.info`, we will only test the subjects
# who match `\.info`.
file_filter: null
to
cli_testing:
# Sets the filter to apply while reading the given input.
# For example, if you give `\.info`, we will only test the subjects
# who match `\.info`.
file_filter: "\.org"
(for example)
into your personal .PyFunceble.yaml
or use the --filter
argument from the CLI.