I am developing a test automation script using Cucumber, Selenium, and JUnit in Java. To quickly detect any issues with my custom code, I am placing System.out.println("success")
and System.err.println("failure")
in certain places. The problem is that neither print to the console in Eclipse. I've done this hundreds of times all though not necessarily with these tools. I suspect either Cucumber or JUnit is the culprit, but I couldn't find anything confirming this after some Google queries.
I did see this:
System.out.println doesn't print anything inside eclipse console
But that isn't the problem. None of my consoles are displaying my println()'s.
UPDATE What I've tried so far:
PrintStream out = System.out; System.setOut(out); System.out.println("hello");
- Eclipse Console not showing output
- Explicitly throw an exception (resulted in no stack trace in console)