To set xUnit as External Tools in Visual Studio:
- Go to Tools > External Tools
- In the screen shown, configure as follow.
- Command field is pointing to xunit.console.exe (xunit.console.clr4.exe if using xUnit 1.6)
- Arguments fields does the main trick. You should set it as :
$(BinDir)$(TargetName)$(TargetExt)
- Check the Use Output window as well to user the Visual Studio Output windows, instead of command prompt.
- You can further drag the xUnit External Tool as a button in your toolbar, or set a shortcut key for it.