Skip to content

Commit

Permalink
Merge pull request #35161 from jmartisk/native-test-note
Browse files Browse the repository at this point in the history
Note about using config under src/test in native mode testing
  • Loading branch information
jmartisk committed Aug 4, 2023
2 parents 6e65c47 + 6714e10 commit a3e6896
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/src/main/asciidoc/getting-started-testing.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1303,6 +1303,12 @@ More information can be found in the link:building-native-image#testing-the-nati
When the application is tested using `@QuarkusIntegrationTest` it is launched using the `prod` configuration profile, but this can be changed using the `quarkus.test.integration-test-profile` property.
====

[IMPORTANT]
====
While adding test-specific configuration properties using `src/test/resources/application.properties` (note there's `test`, not `main`)
is possible for unit tests, it's not possible for integration tests.
====

=== Launching containers

When `@QuarkusIntegrationTest` results in launching a container (because the application was built with `quarkus.container-image.build` set to `true`), the container is launched on a predictable container network. This facilitates writing integration tests that need to launch services to support the application.
Expand Down

0 comments on commit a3e6896

Please sign in to comment.