Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning to Problems view when a test fails #14

Open
willhains opened this issue Jan 18, 2014 · 2 comments
Open

Add warning to Problems view when a test fails #14

willhains opened this issue Jan 18, 2014 · 2 comments
Assignees

Comments

@willhains
Copy link

As an alternative to keeping the JUnit view open all the time, it would be handy to have notification of test failures show as warnings in the Problems view.

Ideally, the location of the warning (i.e. where you jump to you when you click the warning) should be the top of the stack trace from the test failure. And the description text of the warning should be the exception/error message (e.g. "AssertionError: expected: but was:"). The type of the warning can be something like "Test Failure" for fails and "Test Error" for uncaught throwables.

@ghost ghost assigned mirkoseifert Jan 18, 2014
@mirkoseifert
Copy link
Member

You're right. I'm not sure when I'll have time to implement this, so feel free to contribute a patch. Please add a comment to this issue in case you start working on this so we do not implement it twice.

@willhains
Copy link
Author

Alright, I’ll have a crack at it. I’ve never done Eclipse plugin development before, so feel free to criticise and/or fix my code changes! ;)

willhains added a commit to willhains/JUnitLoop that referenced this issue Jan 19, 2014
Define a custom problem marker type for test failures.

When a JUnitLoop test session starts, remove all test failure markers
from the workspace.

On each test failure, create a new test failure marker, which appears in
the Problems view and links to the line in the test case where the
failure occurred.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants