-
Notifications
You must be signed in to change notification settings - Fork 59
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
Tests: Skip integration tests without the presence of "-integration" flag #26
Comments
Would you be open to implementing this as an environment variable? Using flags means you have to implement the flag in all packages if you run tests using
else you get I've pushed a commit that provides this functionality through an environment variable called INTEGRATION_TEST Let me know if you'd like me to raise a PR. |
Hey @mileswilson sure it is. The point here is just avoiding run integration tests when it isn't required. |
Regarding your commit, I think it is exactly what we need. Feel free to open a PR :) |
We want to avoid run integration tests (tests inside
tests
folder) when not passed the flag-integration
to go test command.go test .../. -v -integration
.Please take a look on how to implement this here:
https://siongui.github.io/2017/04/28/command-line-argument-in-golang-test/
This refers to #24
The text was updated successfully, but these errors were encountered: