2
Vote

messages from TestContext.WriteLine

description

the icons to expand the StackTrace are pretty nice.

unfortunately they do not show the "TextMessages" created through:
TestContext.WriteLine("some text");

excerpt from the TRX file:
<UnitTestResult outcome="Failed" ... testName="MyTest1">
  <Output>
    <ErrorInfo>
      <Message>Assert.Fail failed. explicitly focring assertion to fail</Message>
      <StackTrace> at Dummy3.tmp1.MyTest1() in E:\TEST\Dummy3\LocalTest\tmp1.cs:line 91 </StackTrace>
    </ErrorInfo>
    <TextMessages>
      <Message>my custom message 1</Message>
      <Message>my custom message 2</Message>
    </TextMessages>
  </Output>
  <ResultFiles>
    <ResultFile path="MYPC\MyTest1.png"/>
  </ResultFiles>
  <ExtensionResult>Exception has been thrown by the target of an invocation.</ExtensionResult>
</UnitTestResult>
could they maybe be added to the html report?

comments

mrplatypus wrote Apr 27, 2015 at 1:49 PM

Hi All,

I too would like to see this functionality - to make the report more complete, so as to see the output of TestContext.WriteLine.

Many thanks,

mrplatypus, aka Dave