How do I install xUnit.net?

The simplest way to use xUnit.net from within Visual Studio is to use NuGet. Install the xunit package into a class library project, and you're ready to write tests. For users not using Visual Studio, you can download the latest release and unzip it.

To run the tests, you will need to use a runner. xUnit.net provides several runners:
  • Console, MSBuild, and GUI runners are part of the latest release.
  • To run tests inside the new test runner in Visual Studio 2012, install the xUnit.net Runner for VS2012.
  • To run tests inside Visual Studio 2010, you can use third party tools like TestDriven.net, CodeRush, or Resharper.
xUnit.net requires .NET Framework 2.0 or later.

Notes

You can run the xunit.installer.exe program that is included with the distribution to enable to support for TestDriven.net, ASP.NET MVC, and Windows Explorer.

Last edited Oct 25, 2012 at 4:19 PM by BradWilson, version 7