T Hunsicker
T Hunsicker

Reputation: 11

Getting ReportUnit to show attachments

I've got an NUNIT test suite that properly generates an xml file with attachments, but can't find if there is a way to get ReportUnit to show those attachments in the rendered HTML.

Example - TestResult.xml contains:

<test-case id="0-1091" name="TestName" fullname="NUnitTestProject1.TestName" methodname="MethodName" classname="ClassName" runstate="Runnable" seed="92684126" result="Passed" start-time="2018-01-30 22:21:55Z" end-time="2018-01-30 22:21:55Z" duration="0.030017" asserts="5">
<properties />
<attachments>
<attachment>
<filePath>C:\Output\Result1.json</filePath>
<description><![CDATA[Request]]></description>
</attachment>
<attachment>
<filePath>C:\Output\Result2.png</filePath>
<description><![CDATA[Response]]></description>
</attachment>
</attachments>
</test-case>

It shows up when I run it in Visual Studio with the Name Outcome and Attachments

Visual Studio Result

But when I run ReportUnit on it the Attachments don't show up (in either passed tests or failed tests.)

Upvotes: 1

Views: 413

Answers (0)

Related Questions