Skip to content

Instantly share code, notes, and snippets.

@fraga
Created January 5, 2012 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fraga/1566674 to your computer and use it in GitHub Desktop.
Save fraga/1566674 to your computer and use it in GitHub Desktop.
Setting up xUnit in VS as external tool
Go to Tools -> External Tools -> Add
Command: Your xunit.console.exe file path
Arguments: $(BinDir)$(TargetName)$(TargetExt)
Initial Directory: $(BinDir)
Change xunit.console.config so that you have requiredRuntime if you want to run .NET 4.0
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="xunit" type="Xunit.ConsoleClient.XunitConsoleConfigurationSection, xunit.console"/>
</configSections>
<xunit>
<transforms>
<add
commandline="html"
xslfile="HTML.xslt"
description="output results to HTML file"/>
<add
commandline="nunit"
xslfile="NUnitXml.xslt"
description="output results to NUnit-style XML file"/>
</transforms>
</xunit>
<startup>
<requiredRuntime version="v4.0.20506" safemode="true"/>
</startup>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment