You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -141,6 +141,7 @@ These are the cli options exposed to `pytest` by the plugin.
141
141
|`--snapshot-no-colors`| Disable test results output highlighting. Equivalent to setting the environment variables `ANSI_COLORS_DISABLED` or `NO_COLOR`| Disabled by default if not in terminal. |
142
142
|`--snapshot-patch-pycharm-diff`| Override PyCharm's default diffs viewer when looking at snapshot diffs. See [IDE Integrations](#ide-integrations)|`False`|
143
143
|`--snapshot-diff-mode`| Configures how diffs are displayed on assertion failure. If working with very large snapshots, disabling the diff can improve performance. |`detailed`|
144
+
|`--snapshot-ignore-file-extensions`| Comma separated list of file extensions to ignore when walking the file tree and discovering used/unused snapshots. | No extensions are ignored by default. |
If using a tool such as [DVC](https://dvc.org/) or other tool where you need to ignore files by file extension, you can update your `pytest.ini` like so:
0 commit comments