-
Notifications
You must be signed in to change notification settings - Fork 93
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
Debugger incorrectly Highlights every assertion error that has occurred in a debugger if the test case a whole fails #575
Comments
I agree, that really seems annoying... it seems we need to have something akin to the |
I think this issue will also apply to the new |
Yes, I was taking a look at the RF source code and it doesn't really provide any API to know whether a given error is the one that'd make the test fail (the main problem is that the debugger needs to stop at the What do you think about having something as a way to automatically ignore failures inside some keywords? That way it'd ignore failures inside of keywords such as |
For the TRY..EXCEPT it should be presumably simpler because the model should have the information on when it would need to stop (unlike keywords where this information is not available). |
Yeah, I don't mind that. Personally, I don't see any reason to see the failures in these keywords, Unless they timeout. Though I can't speak for everyone, and they want the behaviour to be togglable. |
Describe the bug
The Codebase that I work on has a lot of Polling, waiting for certain conditions to become true. This is mainly achieved through the use of keywords
Run Keyword And Ignore Error
andWait Until Keyword Succeeds
This polling makes it extremely difficult to use the debugger. A whole load of noise will be introduced if the test case I'm working on fails on an assertion that happens after the polling.
To Reproduce
To help explain the pain I have made this small reproducible
This is the output of the debugger when run:
Expected behavior
Ideally, I would prefer that the debugger ignored all the assertion errors that were captured and handled and only highlighted the line that caused the test to fail
Additionally, when Running debugging the test, with the
break on FAIL
option enabled, This code will break on every single fail, which makes the feature not very helpful in this context.The text was updated successfully, but these errors were encountered: