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

Ability to disable running ITs against the docker image #46232

Open
adutra opened this issue Feb 12, 2025 · 4 comments · May be fixed by #46243
Open

Ability to disable running ITs against the docker image #46232

adutra opened this issue Feb 12, 2025 · 4 comments · May be fixed by #46243
Labels
area/testing kind/enhancement New feature or request

Comments

@adutra
Copy link
Contributor

adutra commented Feb 12, 2025

Description

In some cases, quarkus.container-image.build may be true but running integration tests against a running docker container may not be feasible. In our case, for instance, some integration tests require both the application and the test code to access the same local filesystem, which is (almost) impossible to do when running the app in a container.

I would like to request the ability to control whether tests should be run in a container or not, regardless if quarkus.container-image.build is true.

From this Zulip discussion:

https://quarkusio.zulipchat.com/#narrow/channel/187030-users/topic/quarkus.2Econtainer-image.2Ebuild.20and.20integration.20tests

Implementation ideas

No response

@adutra adutra added the kind/enhancement New feature or request label Feb 12, 2025
Copy link

quarkus-bot bot commented Feb 12, 2025

You added a link to a Zulip discussion, please make sure the description of the issue is comprehensive and doesn't require accessing Zulip

This message is automatically generated by a bot.

@geoand
Copy link
Contributor

geoand commented Feb 12, 2025

So you essentially would like @QuarkusIntegrationTest to run against the jar or native image used to build the container, right?

@adutra
Copy link
Contributor Author

adutra commented Feb 12, 2025

@geoand correct.

geoand added a commit to geoand/quarkus that referenced this issue Feb 13, 2025
…ionTest`

This can be useful when the application builds a
container image as it's final artifact,
but would like to use `@QuarkusIntegrationTest`
to test the jar or native image based on which
the container was built

Closes: quarkusio#46232
@geoand
Copy link
Contributor

geoand commented Feb 13, 2025

@adutra #46243 should be what you describe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants