August 2018
Beginner
160 pages
4h 8m
English
The --lf and --ff options shown previously are provided by an internal plugin named cacheprovider, which saves data on a directory on disk so it can be accessed in future sessions. This directory by default is located in the root directory under the name .pytest_cache. This directory should never be committed to version control.
If you would like to change the location of that directory, you can use the cache_dir option. This option also expands environment variables automatically:
[pytest]cache_dir=$TMP/pytest-cache
Read now
Unlock full access