On 2/24/2015 4:15 PM, S G wrote: > Hi, > > I want to print some information in a Solr test. > But I am unable to get it to print on console or file. > > I have tried System.out.println and log.error but the output is not > coming anywhere. > log4j.properties also looks ok to me. > > Command run: > ant test -Dtestcase=CloudSolrClientTest > > Can someone help me point in the right direction?
If the test passes, the output will not normally be seen. I think the output is logged to a file somewhere, but I do not know where. If you want to see the output in your console, just force the test to fail. That should show you everything. In the org.junit.Assert class, there is a fail() method that you should be able to temporarily insert at the end of your test so that all test output will be shown. Thanks, Shawn --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
