Unit test tooltips don't show information
Not sure if it's by design but do you know that unit test tooltips never show the exception message?
They seem to show assertion failure messages, but if a regular exception is thrown it will just say “Test method <name> threw exception:” and ends there with no further information.
This has been an issue for a year or two at least. I just always assumed you would fix it sooner or later but maybe I have to report it for it to get fixed.
Please sign in to leave a comment.
Hello Dave,
Thank you for contacting Rider support.
Regrettably, I was not able to reproduce the issue. Would you mind sharing a screenshot that demonstrates the problem?
Have a nice day!
Thanks for the reply, this is what it looks like. This is MSTest 2.
There are more details but only in the console output if you click on the particular test.
There are other similar formatting issues sometimes. I think it has to do with < and > symbols but hard to say.
Assert.AreEqual fails with strings always does something like this:
It does work in the text explorer though:
Even Assert.AreEquals with numbers is not quite right:
Ok in test explorer:
And Is(Not)InstanceOfType does this:
Ok in the test explorer:
Another example is Assert.AreEqual with reference types:
Hello, Dave Cousineau,
Thank you for reporting this issue. I was able to reproduce it and created a new ticket in our tracker: RIDER-99098 MSTest: Gutter icon tooltips for failed tests contain incomplete text. The issue is handled by a dedicated developer there. Please upvote it and click Watch to keep an eye on the progress of the issue.
Thanks