Bug 526039 - [JUnit 5] Display the reason why a test was skipped or aborted on the JUnit Platform
Summary: [JUnit 5] Display the reason why a test was skipped or aborted on the JUnit P...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.7.1a   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-14 10:55 EDT by Sam Brannen CLA
Modified: 2017-10-14 13:43 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.