Skip to content

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

Merged
mpeddada1 merged 2 commits intomainfrom
include-unit-tests
Jan 11, 2022
Merged

fix(java): Enable unit tests in generated libraries for native image testing#394
mpeddada1 merged 2 commits intomainfrom
include-unit-tests

Conversation

@mpeddada1
Copy link
Copy Markdown
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 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
Comment thread pom.xml
<buildArgs>
<buildArg>--no-fallback</buildArg>
<buildArg>--no-server</buildArg>
<buildArg>--features=com.google.cloud.nativeimage.features.ProtobufMessageFeature</buildArg>
Copy link
Copy Markdown
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.

3 participants