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.
The shortcut to search the console is Ctrl + Shift + G .
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.
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.
I'm not sure if this is IntelliJ's feature or a bug, but maybe someone will find this post useful.
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