Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mbernardeau committed Feb 21, 2018
1 parent 9def582 commit 1e330b4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,21 @@ public class PlanetConverterTest {
}
```

## Activate snapshot writing
Snapshots must be written at the same time as the test.
It is necessary to avoid writing them in CI environments.

To activate snapshot writing, pass the VM option `-Dtest.snapshots.write`.

### With Maven
```bash
mvn -Dtest.snapshots.write test
```

### With Intellij
Set VM option inside Run configuration.

![](./writesnapshot-intellij.png)

## Limitations
- Only one snapshot assertion per test method
Binary file added writesnapshot-intellij.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1e330b4

Please sign in to comment.