2010-06-07

Setting xUnit as External Tools in Visual Studio

To set xUnit as External Tools in Visual Studio:
  1. Go to Tools > External Tools
  2. In the screen shown, configure as follow.
  3. Command field is pointing to xunit.console.exe (xunit.console.clr4.exe if using xUnit 1.6)
  4. Arguments fields does the main trick. You should set it as :
    $(BinDir)$(TargetName)$(TargetExt)
image
  • 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.

ShareThis