-
Notifications
You must be signed in to change notification settings - Fork 16
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 conformance tests for lite runtime #148
Conversation
Update the conformance/google-javalite project to run tests with the lite runtime.
@@ -20,6 +20,10 @@ plugins: | |||
- plugin: connect-kotlin | |||
out: google-javalite/build/generated/sources/bufgen | |||
path: ./protoc-gen-connect-kotlin/build/install/protoc-gen-connect-kotlin/bin/protoc-gen-connect-kotlin | |||
opt: |
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.
Updated the lite tests to use generated code with the same args as the full runtime tests.
compressionPools = listOf(GzipCompressionPool), | ||
), | ||
) | ||
init(GoogleJavaProtobufStrategy()) |
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.
This is the only real change between the two clients.
implementation(project(":conformance:common")) | ||
implementation(project(":extensions:google-java")) | ||
implementation(project(":extensions:google-javalite")) |
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.
These dependencies weren't correct before.
import java.util.concurrent.TimeUnit | ||
|
||
@RunWith(Parameterized::class) | ||
class ConformanceTest( |
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.
I don't like the fact that this is a duplicate of the non-lite test (except for the serialization strategy), but I don't know a better way to share logic with different dependencies.
Update the conformance/google-javalite project to run tests with the lite runtime.