Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How run the test suite? #274

Closed
mrfelton opened this issue Aug 19, 2016 · 1 comment
Closed

How run the test suite? #274

mrfelton opened this issue Aug 19, 2016 · 1 comment
Labels
type: question question directed at the library

Comments

@mrfelton
Copy link

Issue Summary

Hi, I'm working on building something for #273 but I'm unsure how to run the test suite locally against a mocked backend. There is a lot of duplicated code scattered throughout the test suite that looks like you should be able to set MOCK_HOST to something in order to run the tests against something other than the live api.

Please can you explain how these tests are supposed to be run and any recommendations for developing locally? Thanks!

@thinkingserious thinkingserious added the type: question question directed at the library label Aug 19, 2016
@thinkingserious
Copy link
Contributor

That's awesome @mrfelton,

Apologies on the testing documentation, I've just updated it: https://github.com/sendgrid/sendgrid-nodejs/blob/master/CONTRIBUTING.md#testing

We will be automating this soon, as we do here: https://github.com/sendgrid/sendgrid-python/blob/master/test/test_sendgrid.py#L19

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question question directed at the library
Projects
None yet
Development

No branches or pull requests

2 participants