-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
use the info bullet point for unexpected Exceptions #738
Comments
I think we should discuss whether this is a good use of the new bullet point, taking also into account what we discussed in robstoll/atrium-roadmap#91. My understanding is that this bullet point is for providing auxiliary information that aides debugging. The properties of a thrown exception are not that, from my point of view. I think that it is important that Atrium is very consistent in its reporting, as I think the bullet points can be a great help when scanning reports. |
I basically agree, quickly thought about introducing the magnifier bullet point but came to the conclusion that I don't want to introduce it in 0.15.0. Because then I would want to change the Path assertions as well and I prefer to release 0.15.0 after I have merged the last two issues I have pre-seen for 0.15.0. In this sense it is still an improvement IMO and will be further improved with the magnifier bullet point in a later version. |
From my point of view, printing the unexpected exception does not fall under any of the use cases we discussed in robstoll/atrium-roadmap#91 at all. Instead, printing the unexpected exception is for me the same use case as printing the unexpected value in an For me, this is different from the path expectations, where we give information about related properties. Here, we give information directly about the unexpected value. |
I would use the magnifier bullet point as it is additional information which helps in debugging the error. A bit like:
which also tells something about the actual context |
For me, there is a big difference: In the path expectations, the subject is a path, and a wrong value is also a path. Hence, contents on the disk are secondary information for debugging, hence the special bullet point. For exceptions, the subject and wrong value of the expectations are exceptions, so the wrong exception is the primary information. This does not need special treatment. However, I recognize that one can see this differently and I won’t split hairs about this for too long. I think the magnifying glass is also acceptable. If it won’t be the |
Platform (all, jvm, js): all
Extension (none, kotlin 1.3): none
Code related feature
For instance, instead of
It would be nicer if we see:
The text was updated successfully, but these errors were encountered: