We rely heavily on logic in our Junit runner and currently call into it with mvn test
The logic mainly consists of
- Instantiating a
RuntimeHookand binding it toRunner.Builder().hookif an appropriate JVM switch is specified on the command line. - Calling
Runner.Builder().clientFactory()with a mock, again if an appropriate JVM switch is specified on the command line. - Last setting minor things like
Runner.Builder().tagsandRunner.Builder().path
All of this works perfect today. Our main gripe however is Maven is slow.
Is there a way to accomplish the above logic and run without the expensive build time of Maven?