TransWikia.com

Get Visual Studio (2013 Community) unit test execution messages

Software Quality Assurance & Testing Asked by Slava Klevchenia on August 25, 2020

Test error message screenshot

Hi, I’m trying to make a "nice" test execution report and get the following elements:

  1. Message
  2. StackTrace
  3. 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

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP