Skip to content

chore(java): omit -Penable-integration-tests parameter from native image test run command#1757

Merged
mpeddada1 merged 2 commits intomasterfrom
grl-parameter
Feb 1, 2023
Merged

chore(java): omit -Penable-integration-tests parameter from native image test run command#1757
mpeddada1 merged 2 commits intomasterfrom
grl-parameter

Conversation

@mpeddada1
Copy link
Copy Markdown
Contributor

The opting in of tests for native image testing is explicitly done in the native profile's maven-surefire-plugin. See https://github.com/googleapis/java-shared-config/blob/44a77b0faf5b4f3f9208117ccab0a3717d059efd/pom.xml#L806-L817 for reference. Therefore, the -Penable-integration-tests profile is redundant.

@mpeddada1 mpeddada1 marked this pull request as ready for review January 30, 2023 15:55
@mpeddada1 mpeddada1 requested a review from a team January 30, 2023 15:55
Copy link
Copy Markdown
Contributor

@BenWhitehead BenWhitehead left a comment

Choose a reason for hiding this comment

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

An additional point of clarity:
Normally (for non-native builds), our config for surefire (and the test phase) will exclude integration tests from running, deferring those integration tests to failsafe and the integration-test phase. In the case of the native profile, we actually exclude unit tests from being run, and shift the integration tests patter from integration-test instead to test which native then uses.

Despite our change here saying we're not running integration tests, we in fact are and have been running them in the test phase for some time.

@mpeddada1
Copy link
Copy Markdown
Contributor Author

Thanks for the additional context @BenWhitehead!

@mpeddada1 mpeddada1 merged commit df311d1 into master Feb 1, 2023
@mpeddada1 mpeddada1 deleted the grl-parameter branch February 1, 2023 23:18
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