Hi, I'm trying to make a "nice" test execution report and get the following elements:
- Message
- StackTrace
- Elapsed time
Test name and Test Outcome are easily taken as TestContext parameters, for output I'm using Console.SetOut(StreamWriter)
. List of attachments are also known (because they are created during report generated).
I'd try to use:
Console.SetError
(returns null)System.Envoirement.StackTrace
(return some another message),System.Diagnostic.StackTrace