Native Image tests are failing when System Properties are used. #1693
Labels
api: spanner
Issues related to the googleapis/java-spanner API.
🚨
This issue needs some love.
triage me
I really want to be triaged.
Currently some integrations tests that are run with the native profile are resulting in the following errors:
This means that system properties are not accessible to the tests after native image compilation. According to the official documentation, System properties are only available at build-time (when the native image builder is building the image) and not at run-time and can't be determined from the maven-surefire/maven-failsafe plugin. This requires us to do a couple of things:
native-image
command using-Dspanner.testenv.config.class=
.Additionally, we also need to specify the system properties to the maven surefire plugin because the
native
profile uses this plugin to run tests before building the native image.The text was updated successfully, but these errors were encountered: