How do I install xUnit.net?
The simplest way to use xUnit.net from within Visual Studio is to use NuGet. Install the
into a class library project, and you're ready to write tests. For users not using Visual Studio, you can download the
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
- 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.
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.