Junit test with spark: very big binary file output.bin generated under test results folder


(Wei Xie) #1

Hi Guys,
i have a java project with junit test cases which contains spark app in local mode.
by running test: gradle test there will be a very big output.bin file generated under test-results/test/binary folder. What is the input of this output.bin file? stdout+logs of the tests? and how can i configure test to avoid this?
Thanks!

Wei


(Wei Xie) #2

ok, i found the reason. This is caused by wrong log4j config file which enable all level to stdout.
putting the right log4j config file under /src/test/resources folder fixed the problem.

Br