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

add make test-network command #132

Closed
wants to merge 1 commit into from

Conversation

topher200
Copy link
Collaborator

Normally, when tests are run we use vcr fixtures for any external API
requests that our test calls make. This is great! It lets us run our
tests quickly and deterministically, without worrying about the slowness
or availablity of external services.

However, this means our tests can't alert us to external APIs changing.
If an API changes, our vcr fixtures would continue to provide us with
old API data, giving us false-positives that our plugins were working.

make test-network lets us run the same tests but ignores the vcr
fixtures. This means that tests will hit the external network. It uses
an environment variable, set by the Makefile, to alert our test utils
whether or not to use vcr for a given run.

Closes #123

Normally, when tests are run we use vcr fixtures for any external API
requests that our test calls make. This is great! It lets us run our
tests quickly and deterministically, without worrying about the slowness
or availablity of external services.

However, this means our tests can't alert us to external APIs changing.
If an API changes, our vcr fixtures would continue to provide us with
old API data, giving us false-positives that our plugins were working.

`make test-network` lets us run the same tests but ignores the vcr
fixtures. This means that tests will hit the external network. It uses
an environment variable, set by the Makefile, to alert our test utils
whether or not to use vcr for a given run.

Closes llimllib#123
@topher200 topher200 requested a review from llimllib October 13, 2017 05:08
@topher200
Copy link
Collaborator Author

I'm still learning github's PR tool. It seems like if I want to do two requests (one which depends on the other), the GH way to do it is to make it one monolithic pull request with individual commits. I'll close this and upload a different PR with both commits.

@topher200 topher200 closed this Oct 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tests should run with or without the data from vcr's fixtures
2 participants