Sometimes, you have a strange need to package all of your test classes in to a giant uber mega jar and run the tests in them. The JUnit ConsoleLauncher works a treat - until you want to use spring and some @SpringBootTest
annotations.
Contextually, I had a case where I had some @SpringBootTest
classes I wanted to run on repeat but without haivng to deal with gradle
. There's almost certainly better ways to do this - but sometimes it's fun to do hard things.
build.gradle
: (may vary based on legacy syntax/vs not + gradle version)