Skip to content

Commit 1e330b4

Browse files
committed
Update README.md
1 parent 9def582 commit 1e330b4

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,21 @@ public class PlanetConverterTest {
9393
}
9494
```
9595

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+
![](./writesnapshot-intellij.png)
111+
96112
## Limitations
97113
- Only one snapshot assertion per test method

writesnapshot-intellij.png

15.6 KB
Loading

0 commit comments

Comments
 (0)