Disabling starting Quarkus in QuarkusTests

275 views
Skip to first unread message

Alex Soto Bueno

unread,
Nov 7, 2019, 6:43:01 PM11/7/19
to Quarkus Development mailing list
Ok I know it might some weird at the beginning and your quick answer will be, don't annotate test with QuarkusTest annotation, but today I have done a talk about Quarkus and one attendee raised the next use case.

I am running continuos testing tool like https://infinitest.github.io/
Then I want to start at dev mode the quarkus application, do a change, this change is reflected to running instance and infinitest runs the the test against the new instance.

I know here there os one problem and it is what's happen if infinitest runs before quarkus update. But assuming that this can be workaround then you have the problem that Quarkus is starting a new instance so you are loosing some time booting up when you already have an instance running (dev mode one).

Of course you might say, "then do not annotate the test with the QuarkusTest" but the idea is that you run infinitest in local development and then the same tests are executed correctly in CI systems.

So the idea would be to have a configuration attribute that if it is set to true, then Quarkus test does not start the application and just assumes that it is running in localhost 8080.

WDYT?

Stuart Douglas

unread,
Nov 7, 2019, 6:50:42 PM11/7/19
to Alex Soto Bueno, Quarkus Development mailing list
Seems reasonable, can you file a feature request? I would not want this to be enabled by default, but we should have a config option for it.

We could actually make it be 'smart', and attempt to detect if a) the app is actually running, and b) the app is the correct app (e.g. have an endpoint in dev mode where you can ask for the running app id, which would also add this to a file in /target. You can then verify that the current app is actually the app running on 8080.

 

--
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/cc17bdf6-2a4b-4b57-b02a-985d6e028ff9%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages