Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij not shows test results in console

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.

like image 804
user1085746 Avatar asked Dec 05 '13 08:12

user1085746


People also ask

How do I get test reports in Intellij?

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.

How do I get full console log in Intellij?

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.


3 Answers

In IDEA 12,13 and 14 (also maybe other versions), there is a button "Hide passed tests" and is pressed by default:

enter image description here

The console output is missing some of the printed strings (the last ones). When you uncheck the button and click on the test:

enter image description here

Then the output is shown in the console.

like image 172
mirelon Avatar answered Sep 18 '22 17:09

mirelon


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.

like image 28
user1085746 Avatar answered Sep 21 '22 17:09

user1085746


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.

enter image description here

like image 26
Mathias G. Avatar answered Sep 18 '22 17:09

Mathias G.