Skip to content

Commit

Permalink
Update CONTRIBUTING.md with small tips for snapshots taken from perso…
Browse files Browse the repository at this point in the history
…nal repository
  • Loading branch information
kgromov committed Aug 25, 2023
1 parent 7d8ca89 commit f2c5149
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ a Java VM option). For example:
The above command will create snapshot WireMock data files under the path `src/test/resources/org/kohsuhke/github/YourTestClassName/wiremock`.
Each method will get a separate directory that will hold the data files for that test method.

*Note:* if you are using personal github account don't forget to change `getTempRepository()` to `gitHub.getRepository("${your_account}/${test_method_name}")`
in order to match with snapshot file name for wiremock. To double-check run test without `-Dtest.github.org=false` flag after snapshot is saved.

Add all files including the generated data to your commit and submit a PR.

### Modifying existing tests
Expand Down

0 comments on commit f2c5149

Please sign in to comment.