Howto set the output in test console? When i run test by default the output is replaced by the summary of the test, and System.outs are lost.
on the Test Runner toolbar. If you haven't run any tests yet, and the tool window with the Test Runner toolbar is not available, press Ctrl+Shift+A and type Import Tests from File . In the dialog that opens, select the . xml file with test results and click Open.
In the run/debug configuration that will be used for launching the app, click the Logs tab. The Edit Log Files Aliases table displays the list of log files. Select Save console output to file Specify the path to the file.
In IDEA 12,13 and 14 (also maybe other versions), there is a button "Hide passed tests" and is pressed by default:
The console output is missing some of the printed strings (the last ones). When you uncheck the button and click on the test:
Then the output is shown in the console.
I got it! There is an configuration option in bottom run panel, and by default "Track running test" is checked, when I unchecked it the output stays and is no more replaced by summary.
Another possibility is that your logging is maybe configured to be written to a file. If this is the case, you can uncheck the 'Save console output to file' option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With