Skip to content

build: move proto test files to common place#456

Merged
octonato merged 1 commit intomainfrom
rgc/reuse-protobuf-test-files
Sep 22, 2021
Merged

build: move proto test files to common place#456
octonato merged 1 commit intomainfrom
rgc/reuse-protobuf-test-files

Conversation

@octonato
Copy link
Copy Markdown
Member

This is in preparation for full generation tests for the Scala SDK.

We have a bunch of files used by codegenJavaCompilationTest that exercise many different options.

As we progress with the codegen for Scala, we want the Scala codegen to run on those same files.

@raboof
Copy link
Copy Markdown
Contributor

raboof commented Sep 22, 2021

This is in preparation for full generation tests for the Scala SDK.

Don't we already have full generation tests, the scripted tests of the sbt plugin?

@octonato
Copy link
Copy Markdown
Member Author

Don't we already have full generation tests, the scripted tests of the sbt plugin?

My sentence is not clear. Yes, we do have full generation. What I mean, we should be able to have exhaustive generations to be able to catch corner cases. Like usage of outer java class, multi-files, import from other packages, etc. That's why we have this list of files.

@octonato octonato force-pushed the rgc/reuse-protobuf-test-files branch from 6a4a294 to ddbdc63 Compare September 22, 2021 13:38
Copy link
Copy Markdown
Contributor

@patriknw patriknw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with a question about how to use them...

Comment thread build.sbt
.settings(
(publish / skip) := true,
name := "akkaserverless-codegen-java-compilation-tests",
Compile / PB.protoSources += baseDirectory.value / ".." / ".." / "proto-test-files",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we going to do something similar like this in the scripted test to include them? Have you tried that it works?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, the goal is to let the scripted test use it.

I didn't try it, but the plan B is to move the files under the scripted tests and let the codegenJavaCompilationTest link to the files there. Although I prefer to have the files in that proto-test-files

@octonato octonato merged commit 79d8df0 into main Sep 22, 2021
@octonato octonato deleted the rgc/reuse-protobuf-test-files branch September 22, 2021 14:26
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.

3 participants