You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TextContext class includes 2 new properties. TextContext.StackTrace and TextContext.Message (Exception).
Background and Motivation
Hi. I highly need properties for TestContext to get Error message and Stack trace. I am making a custom report and now getting this data is alomost impossible
Proposed Feature
When I use TextContext.Message a message from red rectangle will be returned.
When I use TextContext.StackTrace a stack trace from green rectangle will be returned.
Summary
TextContext class includes 2 new properties. TextContext.StackTrace and TextContext.Message (Exception).
Background and Motivation
Hi. I highly need properties for TestContext to get Error message and Stack trace. I am making a custom report and now getting this data is alomost impossible
Proposed Feature
When I use TextContext.Message a message from red rectangle will be returned.
When I use TextContext.StackTrace a stack trace from green rectangle will be returned.
Alternative Designs
It is the same feature like NUnit 3.x has https://stackoverflow.com/questions/43236826/how-to-obtain-the-stacktrace-and-error-message-from-mstest-run:
var stackTrace = TestContext.CurrentContext.Result.StackTrace;
var errorMessage = TestContext.CurrentContext.Result.Message;
The text was updated successfully, but these errors were encountered: