Bug 562858 - [JUnit] Open JUnit failure stack trace in a dialog
Summary: [JUnit] Open JUnit failure stack trace in a dialog
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.16   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted, usability
Depends on:
Blocks:
 
Reported: 2020-05-06 02:52 EDT by Lars Vogel CLA
Modified: 2020-07-01 09:07 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2020-05-06 02:52:09 EDT
Would be nice to have to option to open the test error message in a dialog so that it is easier to read. For example, a double-click on the message could open a dialog with the message.
Comment 1 Noopur Gupta CLA 2020-07-01 06:18:51 EDT
You can use the button "Show stack trace in Console view" from the Failure Trace part to open the error in the Console view. It also allows you to easily copy a part of the stack trace and navigate to the failing locations using hyperlinks.

Is there any additional functionality that you are looking for in this bug report?
Comment 2 Lars Vogel CLA 2020-07-01 06:24:46 EDT
I think we should show the test failure message in a dialog after double-clicking on it. See for example the "View assertEquals difference" screenshot from https://www.jetbrains.com/help/idea/viewing-and-exploring-test-results.html

Such a simple display of the error message is way nicer then the current Eclipse support.
Comment 3 Noopur Gupta CLA 2020-07-01 06:46:14 EDT
For comparison failures like "assertEquals", Eclipse already has a "Result Comparison" dialog as shown in your screenshot. You need to double-click on the failed message entry from the Failure Trace part.
Comment 4 Noopur Gupta CLA 2020-07-01 06:49:27 EDT
For non-comparison failures, showing the stack trace in the Java Stack Trace Console view is more beneficial than a separate dialog as it also provides integrated navigation support via hyperlinks. (https://www.eclipse.org/eclipse/news/4.7/jdt.php#show-junit-failure-trace-in-console-view)

Keeping the bug open to add a dialog with similar functionality as the console view as another way to display the stack trace.
Comment 5 Lars Vogel CLA 2020-07-01 08:20:37 EDT
(In reply to Noopur Gupta from comment #4)
> For non-comparison failures, showing the stack trace in the Java Stack Trace
> Console view is more beneficial than a separate dialog as it also provides
> integrated navigation support via hyperlinks.
> (https://www.eclipse.org/eclipse/news/4.7/jdt.php#show-junit-failure-trace-
> in-console-view)

But it is very hard to discover for users.


> Keeping the bug open to add a dialog with similar functionality as the
> console view as another way to display the stack trace.

+1