Get VS Test Explorer to show only test name not full type name

c#, visual-studio, visual-studio-2013, xunit.net

Solution

In v2 this is now configurable, see https://xunit.net/docs/configuration-files

So you need to add to app.config:

<appSettings>
    <add key="xunit.methodDisplay" value="method"/>
</appSettings>

and as noted in the comments, you might need to restart Visual Studio.

Problem

My VS test explorer shows tests including the full type name, like so: CompanyName.ProjectName.Web.Tests.SutDoesWhatItShould Instead of just: SutDoesWhatItShould This is highly unreadable/annoying. How do I fix this? I'm using the xunit runner for visual studio (prerelease) and xunit.net.

Original source