junit - How to get println to print out in the Bamboo logs when running maven test goal -
i'm trying work out how print bamboo logs junit test debug particular issue. i've tried using system.out.println
, have tried log4j unfortunately neither printing out in bamboo logs. i'm looking @ log within run.
my junit tests being run maven 3.0.4 task within plan defined in bamboo.
i able see exceptions have occurred within test. why can't see done through system.out.println
? how can find out being output to?
i found answer. turned out pom.xml file had redirecttestoutputtofile option set true. after removing line logs appear in bamboo.
<plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-surefire-plugin</artifactid> <version>2.12.4</version> <configuration> <redirecttestoutputtofile>true</redirecttestoutputtofile> </configuration> </plugin>
Comments
Post a Comment