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: CONTRIBUTING.md
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -129,6 +129,22 @@ All test files are in the [`tests`](https://github.com/sendgrid/sendgrid-java/tr
129
129
130
130
For the purposes of contributing to this repo, please update the [`SendGridTest.java`](https://github.com/sendgrid/sendgrid-java/tree/master/src/test/java/com/sendgrid/SendGridTest.java) file with unit tests as you modify the code.
131
131
132
+
1. Download [prism](https://stoplight.io/prism/) for your platform ([Mac OS X](https://github.com/stoplightio/prism/releases/download/v0.1.5/prism_darwin_amd64)) and save the binary to the sendgrid-ruby directory (or any directory you would like. The sendgrid-ruby directory is chosen mostly for convenience.)
133
+
134
+
1. Add execute permissions
135
+
136
+
```bash
137
+
chmod +x prism
138
+
```
139
+
140
+
1. In a separate terminal, cd into the directory you chose for prism and start the sendgrid local server which the tests will use.
141
+
142
+
```bash
143
+
./prism run --mock --list --spec https://raw.githubusercontent.com/sendgrid/sendgrid-oai/master/oai_stoplight.json
144
+
```
145
+
146
+
1. Now you can run the test suite from the root of the project
0 commit comments