Test results formatting
Currently the test results appear as a block of text within the "NCrunch Tests" window. When compared to the built in display of test results in TestExplorer (im using VS2017), it feels rather raw and perhaps could be improved.
Im not saying to get rid of the raw text output (we all have our preferences), but to have an option to format the display of results to allow the result of a test to be clear and distinct from the full result text. So, instead of:
Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException: Assert.AreEqual failed. Expected:<2>. Actual:<1>. Some random failure description i typed in as the 3rd param of AreEqual
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.HandleFailure(String assertionName, String message)
........
which is more than you need to read at times.. so id like to see something along the lines of:
Assert.AreEqual failed.
Expected:<2>.
Actual:<1>.
Some random failure description i typed in as the 3rd param of AreEqual
......
perhaps a gap then the stack trace. the first line could be a hyper link to the failing line (instead of the last line of the result text).
-
Craig Shea commented
I second this. We have some unit tests that emit a string giving more context around what may be wrong, and we use, for example, `$"{System.Environment.NewLine}Expected controller action method {actionMethod} to be decorated with the permission {permission}"; The `System.Environment.NewLine` gets output as `\r\n` in the NCrunch window, which completely ruins the formatting of the messages.