We have a setup with quite a large number of integration tests, each in
different classes. For every test we start Dropwizard using the
DropwizardAppExtension as exaplined in the documentation, example below.
Using the AppExtension causes the Dropwizard application to start before
running the tests of each class and to stop the application when the tests
has finished.
Our issue is that the startup and shutdown process of our application is
quite heavy and takes some time (~15 seconds). We have to connect to
subscribe Kafka topics, do some work and so on which takes a lot of time.
Is there any way to start Dropwizard once and reuse it for all integration
tests? I know Spring Boot has this feature and only starts a new instance
of the application if the configuration differs between applications.
In every integration test we start up the application using something like:
public static final DropwizardAppExtension<MyServiceConfiguration> RULE =
new DropwizardAppExtension<>(
MyApplication.class, ResourceHelpers.resourceFilePath("testing.yml"));
--
You received this message because you are subscribed to the Google Groups
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dropwizard-user/babfebdb-8b89-4c5e-a6a5-750284c7ddf5n%40googlegroups.com.