Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Make DropwizardAppRule start and stop app only once, even when called recursively #1411
We've found on our projects that builds go significantly faster if we use DropwizardAppRule at the suite level.
This however makes it difficult to run individual tests in isolation.
This pull request makes DropwizardAppRule usable in a recursive way, but only starts and stops the application once for the outer call. With this change we are able to run the entire test suite, or a single test in a single class, and the application will be started/stopped once and only once.
There are usage examples in the javadoc changes.