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.![image](https://github.com/microsoft/testfx/assets/2510792/8f055695-586b-4238-b6d4-a2dda25e5259)
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;