Hi,
First post so be gentle please!
I have a Java project with some JUnit tests.
I’d like some code to run on every test so I use code like this:
beforeTest { descriptor ->
logger.lifecycle("OIS B - bpmServerIntegrationTest - running test: " + descriptor)
}
Am I right in saying that this closure logic runs in the main gradle JVM rather than the JVM which is executing the tests?
Is there any way to run some hook code before each test, but run it in the "test run " JVM?
The reason for this is that the tests use log4j and produce a large log file.
I’d like to make that log file easier to read by showing a banner on each test.
Thanks in advance,
Connor