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
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,15 @@ pytest --snapshot-update
46
46
47
47
A snapshot file should be generated under a `__snapshots__` directory in the same directory as `test_file.py`. The `__snapshots__` directory and all its children should be committed along with your test code.
48
48
49
+
### Options
50
+
51
+
These are the cli options exposed to `pytest` by the plugin.
|`--snapshot-update`| When supplied updates existing snapshots of any run tests, as well as deleting unused and generating new snapshots. |
56
+
|`--snapshot-warn-unused`| Syrupy default behaviour is to fail the test session when there any unused snapshots. This instructs the plugin not to fail. |
57
+
49
58
### Serializers
50
59
51
60
Syrupy comes with a few built-in serializers for you to choose from. You should also feel free to extend the AbstractSnapshotSerializer if your project has a need not captured by one our built-ins.
0 commit comments