@QuarkusIntegrationTest with test profile

180 views
Skip to first unread message

Bill

unread,
Apr 8, 2021, 7:26:38 AM4/8/21
to Quarkus Development mailing list
Hello,

is it possible now or maybe in the future to run @QuarkusIntegrationTest with test profile activated instead of prod, which seems to be activated by default for @QuarkusIntegrationTest?

I'd like to test packaged jar application but must mock remote endpoints with wiremock or similar and use application.properties from src/test/resources

Thanks!

Georgios Andrianakis

unread,
Apr 8, 2021, 7:39:03 AM4/8/21
to tco...@gmail.com, Quarkus Development mailing list
Hi,

@QuarkusIntegrationTest does not affect the build of the application in any way - it just launches the final artifact (a jar in your case). Therefore, even if we support setting quarkus.profile for the launched application, you are likely not going to see what you expect as mocking and various other annotations (like @IfBuildProfile) have been applied at build time and are not utilized at runtime

--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/7d6725cf-6947-4075-9a0c-471829b7a20dn%40googlegroups.com.

Bill

unread,
Apr 8, 2021, 8:14:53 AM4/8/21
to Quarkus Development mailing list
yes, it make sense. My problem is, that sometimes the jar built is failing to run because of some dependencies resolution problems, despite tests are fine and running with mvn quarkus:dev works fine as well. So, I thought it would be possible to test the packaged jar application as well
Reply all
Reply to author
Forward
0 new messages