Bug 526039

Summary: [JUnit 5] Display the reason why a test was skipped or aborted on the JUnit Platform
Product: [Eclipse Project] JDT Reporter: Sam Brannen <sam>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: noopur_gupta, sam
Version: 4.7.1a   
Target Milestone: ---   
Hardware: All   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=386676
Whiteboard:

Description Sam Brannen CLA 2017-10-14 10:55:33 EDT
This feature request is similar to bug 386676; however, this request is for generic support for the JUnit Platform (i.e., not specific to JUnit 4).

Specifically, the IDE should differentiate between "skipped" and "aborted" tests or containers. In addition, if a "reason" is present it should then be displayed to the user.

One option is to make the "reason" available via mouse over (i.e., by hovering the mouse over the skipped/aborted item).

Another option (inspired by existing support for this feature in IntelliJ IDEA) would be to display the "reason" in what is currently called the "Failure Trace" pane. In that case it might be better to rename the "Failure Trace" pane to something like "Details".

As a side note, I noticed that the "Runs" box displays "3/3 (1 skipped)"; whereas, if you hover over the "Runs" box, it displays "3/3 (1 disabled)". Thus, it would be beneficial if these two were at least consistent.
Comment 1 Noopur Gupta CLA 2017-10-14 13:43:12 EDT
(In reply to Sam Brannen from comment #0)
> Specifically, the IDE should differentiate between "skipped" and "aborted"
> tests or containers. 
> 
> As a side note, I noticed that the "Runs" box displays "3/3 (1 skipped)";
> whereas, if you hover over the "Runs" box, it displays "3/3 (1 disabled)".
> Thus, it would be beneficial if these two were at least consistent.

In Eclipse IDE, number of skipped tests = number of disabled (ignored for JUnit 4) tests + number of tests with assumption failures (i.e. aborted tests).

The "Runs" box displays the total number of skipped tests and on hover you can see the exact number of disabled tests and tests with assumption failures.

For example, if you have two tests in your test class out of which one is disabled and other has assumption failure, then the IDE will display (2 skipped) and on hover (1 disabled, 1 assumption failure).

The other part of the bug report can be handled along with bug 386676 or separately for JUnit Platform via this bug.