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

fix(java): Enable unit tests in generated libraries for native image testing #394

Merged
merged 2 commits into from Jan 11, 2022

Conversation

mpeddada1
Copy link
Contributor

@mpeddada1 mpeddada1 commented Jan 7, 2022

Currently, only integration tests are enabled for native image testing in all libraries. However, the native-maven-plugin fails when no tests are run in a module. This affects modules don't have integration tests.

To increase test coverage, we decided to enable unit tests in generated libraries for native image testing.

@mpeddada1 mpeddada1 requested a review from a team as a code owner January 7, 2022 21:44
@mpeddada1 mpeddada1 changed the title Enable unit tests in generated libraries for native image testing fix(java): Enable unit tests in generated libraries for native image testing Jan 7, 2022
@@ -829,6 +831,7 @@
<buildArgs>
<buildArg>--no-fallback</buildArg>
<buildArg>--no-server</buildArg>
<buildArg>--features=com.google.cloud.nativeimage.features.ProtobufMessageFeature</buildArg>
Copy link
Member

Choose a reason for hiding this comment

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

Memo: To register reflection usage in unit tests for protobuf classes.

@mpeddada1 mpeddada1 merged commit a453b9f into main Jan 11, 2022
@mpeddada1 mpeddada1 deleted the include-unit-tests branch January 11, 2022 16:44
gcf-merge-on-green bot pushed a commit that referenced this pull request Jan 11, 2022
🤖 I have created a release *beep* *boop*
---


### [1.2.5](v1.2.4...v1.2.5) (2022-01-11)


### Bug Fixes

* **java:** Enable unit tests in generated libraries for native image testing ([#394](#394)) ([a453b9f](a453b9f))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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.

None yet

3 participants