You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test attachments are not appearing in the VS Test Explorer.
When I use the API TestContext.AddTestAttachement I'm expecting to see these attachments appear in the VS Test Explorer like this:
But unfortunately the attachments are not shown.
NUnit 3.7.1 and NUnit3TestAdapter 3.8
Visual Studio 2017 15.2 26430.16
Repro: in a new Class Library project add the NUnit and NUnit3TestAdapter packages. Then add this code and run the test from the test explorer.
using NUnit.Framework;using System.IO;namespaceClassLibrary1{[TestFixture]publicclassClass1{[Test]publicvoidMethod1(){
TestContext.AddTestAttachment(Path.GetTempFileName());}}}
Running it using the console shows the attachment is in the TestResult.xml:
Test attachments are not appearing in the VS Test Explorer.
When I use the API
TestContext.AddTestAttachement
I'm expecting to see these attachments appear in the VS Test Explorer like this:But unfortunately the attachments are not shown.
Running it using the console shows the attachment is in the TestResult.xml:
The text was updated successfully, but these errors were encountered: