-
Notifications
You must be signed in to change notification settings - Fork 0
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 integration test workflow #154
Conversation
1206b5f
to
adf2e2c
Compare
a4405c5
to
a30d963
Compare
3d210b2
to
f0624e9
Compare
f0624e9
to
8c862c0
Compare
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.
Nice work on this! I like this implementation of integration testing a lot (wherever we can do this in a pipeline).
instance, err := createTestInstance() | ||
|
||
if err != nil { | ||
t.Errorf("unexpected error: %s", err) |
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.
The only nit from me is to not use conditions to cause the tests to error but instead use the assert
and require
testing functions. Wdyt?
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.
Those require testify
though right?
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.
Yep, feel free to ignore the suggestion I just think it'll improve the readability 😊
This PR adds integration tests for the datasource. Part of https://github.com/grafana/oss-plugin-partnerships/issues/845.