We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9def582 commit 1e330b4Copy full SHA for 1e330b4
README.md
@@ -93,5 +93,21 @@ public class PlanetConverterTest {
93
}
94
```
95
96
+## Activate snapshot writing
97
+Snapshots must be written at the same time as the test.
98
+It is necessary to avoid writing them in CI environments.
99
+
100
+To activate snapshot writing, pass the VM option `-Dtest.snapshots.write`.
101
102
+### With Maven
103
+```bash
104
+mvn -Dtest.snapshots.write test
105
+```
106
107
+### With Intellij
108
+Set VM option inside Run configuration.
109
110
+
111
112
## Limitations
113
- Only one snapshot assertion per test method
writesnapshot-intellij.png
15.6 KB
0 commit comments