Bug 374239 - [JUnit] String compare dialog isn't refreshed when unit tests fail with exception
Summary: [JUnit] String compare dialog isn't refreshed when unit tests fail with excep...
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7.2   Edit
Hardware: All All
: P4 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2012-03-14 10:17 EDT by Aaron Digulla CLA
Modified: 2020-05-20 11:25 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Digulla CLA 2012-03-14 10:17:35 EDT
1. Run a couple of unit tests which compare Strings with assertEquals(). Make sure one of the test fails with an error.
2. Run the tests and open the string compare view
3. Fix the comparison error and throw an exception instead.
4. Run the tests again

The compare view will still show the content from the run in step #2. If you don't read the error message in the "Failure Trace", it's easy to get confused why the error doesn't vanish.

Suggested fix: Clear the compare view after running the unit tests when the first error in the JUnit view doesn't use assertEquals(String, String).
Comment 1 Markus Keller CLA 2012-03-14 10:45:11 EDT
Agree it should be cleared on on rerun.
Comment 2 Eclipse Genie CLA 2020-05-20 11:25:02 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.