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 conformance tests for lite runtime #148

Merged
merged 4 commits into from
Nov 10, 2023

Conversation

pkwarren
Copy link
Contributor

@pkwarren pkwarren commented Nov 9, 2023

Update the conformance/google-javalite project to run tests with the lite runtime.

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:
Copy link
Contributor Author

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())
Copy link
Contributor Author

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"))
Copy link
Contributor Author

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(
Copy link
Contributor Author

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.

@pkwarren pkwarren merged commit 87dff21 into main Nov 10, 2023
7 checks passed
@pkwarren pkwarren deleted the pkw/add-conformance-javalite-tests branch November 10, 2023 03:28
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.

2 participants