How can XUnit be configured to show just the method name in the Visual Studio 2015 Test Explorer?
You can also add it with json.
In the root directory of your test project add a file called "xunit.runner.json".
Right-click the file, properties. Select "Copy if newer" for copy to Output directory.
Then in the file enter this json:
{
"methodDisplay": "method"
}
Note that you may1 require to restart the IDE in order to have the changes applied.
1 Visual Studio 2019 requires an IDE restart.
Set xunit.methodDisplay
in your App.config
file.
<configuration>
<appSettings>
<add key="xunit.methodDisplay" value="method"/>
</appSettings>
</configuration>
Taken from http://xunit.github.io/docs/configuring-with-xml.html