← Back to team overview

nunit-core team mailing list archive

[Question #89773]: Modifying results XML output within test methods

 

New question #89773 on NUnit Framework:
https://answers.launchpad.net/nunit-3.0/+question/89773

Is there a way to allow a test method to modify the results XML output?  For example, this is the current output of a test:

<test-case name="TestTestProject.UnitTest2.TestMethod2" executed="True" success="False" time="0.004" asserts="0">
  <failure>
    <message><![CDATA[System.ApplicationException was expected]]></message>
    <stack-trace />
  </failure>
</test-case>

Compared to what I'd like to have:

<test-case name="TestTestProject.UnitTest2.TestMethod2" executed="True" success="False" time="0.004" asserts="0">
  <failure>
    <message><![CDATA[System.ApplicationException was expected]]></message>
    <stack-trace />
  </failure>
  <text-output>
      <![CDATA[arbitrary text output goes here]]>
  </text-output>
</test-case>

Or something similar to that.  The arbitrary output would contain, e.g., stdout, stderr.

-- 
You received this question notification because you are a member of
NUnit Core Developers, which is an answer contact for NUnit Framework.