Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ scroll console to end after test execution

This is a little thing that annoys me. When I run a test case, output console is flooded by messages (especially when testing Spring beans). When test finishes, I see the red bar appearing, I see that there is a stacktrace somewhere down, but the output is immediately moved to the top.

I know that there is a 'Scroll to the end' button, but I have to click it. I want the end of a test output to be displayed automatically.

I'm using IntelliJ CE, 2018.3.2

I'm attaching a screenshot that shows my console after executing a failing test. Despite a 'Scroll to the end' button is enabled, output is "rewind" to top.

enter image description here

like image 863
mate00 Avatar asked Apr 21 '19 05:04

mate00


People also ask

How do I search the console in Intellij?

The shortcut to search the console is Ctrl + Shift + G .

How do I view test cases 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.


1 Answers

Ok, I found some kind of solution. In the test run tab, there is an icon for test settings. In there there is an option 'Track running test'. I noticed that when I change this setting, my console output stays at the botton and it's not being rewind. You can see that on a screenshot below.

enter image description here

I'm not sure if this is IntelliJ's feature or a bug, but maybe someone will find this post useful.

like image 104
mate00 Avatar answered Sep 24 '22 08:09

mate00