Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij test run history

What I miss the most in IntelliJ compared to Eclipse is the test run history window. Does anything like this exist in IntelliJ? I didn't find it anywhere so far and have looked a few times at least.

In our project we have ~500 integration test cases which take like 5 minutes to run from IDE. Often I have a situation where for e.g. 5 tests fail in 2-3 different classes. I fix something, that should remove failures from first test suite, rerun it to see if it helped and I must rerun all 500 tests to see which classes contained failures earlier. That is really painful. In eclipse I would just lookup those in test history, repair them also and finally run all 500 to check if nothing new camed up.

Is there a plugin out there or do I miss something obvious?

I use IntelliJ 13.

like image 724
kajman Avatar asked Dec 19 '14 07:12

kajman


People also ask

How do I get run history in IntelliJ?

In the Project tool window ( Alt+1 ), right-click the node or select and right-click the files for which you want to see the history and select Local History | Show History.

How do I check my IntelliJ results?

After IntelliJ IDEA finishes running your tests, it shows the results in the Run tool window on the Test Runner tab. The console on the right shows the output of the current test session. It allows you to see the detailed information on the test execution and why your tests failed or were ignored.

Where does IntelliJ store Local History?

Local history file location: They are stored in ${idea. system. path}/LocalHistory/ . See the Directories used by the IDE page in the user guide (and this legacy IDEA document) for the location of the IntelliJ IDEA idea.

Where is runner tab in IntelliJ?

Test Runner tab The Test Runner tab opens in the Run tool window when a testing session begins, and features the same toolbar buttons.


3 Answers

You can right-click a tab with test results and select the "Pin Tab" option from the context menu. Then further test executions will not overwrite this tab, and you can still refer to it to see which other tests you need to fix.

like image 109
yole Avatar answered Oct 19 '22 00:10

yole


On the current version of Intellij (2016), you have now a way to reimport older test Result. On the runner tab, click on the button "Import test Results", and select the one you want Tests Tab Buttons bar screenshot

EDIT : In the latest version, you have a "Recent Tests" action which allow you to see older test result without a need to open the rest windows. Shortcut Ctrl+Shift+Semicolon

like image 29
Teocali Avatar answered Oct 19 '22 00:10

Teocali


Not relevant for Idea 13, but in 2021 this functionality is present in Idea. https://www.jetbrains.com/help/idea/viewing-and-exploring-test-results.html#view-previous

like image 1
Vlad Vershinin Avatar answered Oct 18 '22 22:10

Vlad Vershinin