-
Notifications
You must be signed in to change notification settings - Fork 55
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 a flag to skip tests using Cloud Logging API #69
Conversation
The fail reason of your attached test result is caused because of the missing built frontend file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for proposing this change!
I added several questions and suggestion to fix 👍
Please run |
Thanks, fixed some errors!! |
Thank you for your review @kyasbal, and sorry for my delay in response |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me hear the opinion about adding*testing.T
in the argument of IsValidLogQuery
.
When the things may become more complex with the direction, I think we can merge this as is.
Thank you for your repeated, thorough reviews!! |
(If needed, I will squash some commits into one) |
You don't need it but this repository require PR to be merged as a squashed single commit. Github automatically squash them into a single commit per PR. |
Now this PR is ready to go! |
close #57
Background
Currently, some tests that make API requests to Google Cloud resources cannot be executed, which prevents running Go unit tests in development environments and CI.
Therefore, we want to implement a flag to skip tests that requests to Google Cloud resources
What
skip-cloud-logging
) to skip tests that send API requests to Cloud Logging.internal/testflags
and is (blank-)imported in each test file.go test ./... -args -skip-cloud-logging=true
will not work.Usage
$ go test ./... -args -skip-cloud-logging=true
Result
One of the tests is failing, but this error existed before working on this PR.
$ go test ./... -args -skip-cloud-logging=true
result
Next Steps
I will: