This example presents simple logging with log4j in parallel tests.
As you can see, the logger is not blocked by any test
and logs the message immediately.
log4j configuration is in log4j.properties file.
There are 2 options to run tests parallel:
- By ParallelComputer class of JUnit (experimental) - which I used in this example
- By Surefire plugin
For more about parallel testing click here.