-
Notifications
You must be signed in to change notification settings - Fork 409
Description
Issue Summary
In the Travis CI and local environment:
- Download the appropriate Prism binary (if it does not exist on the system)
- Start Prism, using SendGrid's swagger (oai) definition
- Run the Unit Tests
- Shut Down Prism
References
https://stoplight.io/prism
https://raw.githubusercontent.com/sendgrid/sendgrid-oai/master/oai_stoplight.json
We have already done this in these libraries:
Python:
https://github.com/sendgrid/sendgrid-python/blob/master/.travis.yml#L14
https://github.com/sendgrid/sendgrid-python/blob/master/test/prism.sh
https://github.com/sendgrid/sendgrid-python/blob/master/test/test_sendgrid.py#L22
PHP:
https://github.com/sendgrid/sendgrid-php/blob/master/.travis.yml#L3
https://github.com/sendgrid/sendgrid-php/blob/master/test/prism.sh
https://github.com/sendgrid/sendgrid-php/blob/master/test/unit/SendGridTest.php#L13
C#:
https://github.com/sendgrid/sendgrid-csharp/blob/master/.travis.yml#L9
https://github.com/sendgrid/sendgrid-csharp/tree/master/prism
https://github.com/sendgrid/sendgrid-csharp/blob/master/SendGrid/UnitTest/UnitTest.cs#L23
Go:
https://github.com/sendgrid/sendgrid-go/blob/master/.travis.yml#L4
https://github.com/sendgrid/sendgrid-go/blob/master/prism.sh
https://github.com/sendgrid/sendgrid-go/blob/master/sendgrid_test.go#L35