Configuring Resharper to run xUnit tests

Published Fri, Dec 21 2007 20:08

For those that don't know, xUnit is a new unit test framework for .NET.  The xUnit extensions do have an installer that will help you installing the xUnit Resharper plugin. Unfortunately, it won't work if you're using Windows Vista (at least not with UAC on). The problem is that it checks for the HKEY_LOCAL_MACHINE for the Jetbrains hives but in my case they're defined on the HKEY_CURRENT_USER. So, to get Resharper integration, you'll need to follow these steps:

  1. create a Plugins/xUnit folder inside the R#_Install_Dir/Bin folder
  2. copy the xunit.dll and xunitext.runner.jetbrains.dll assemblies into that folder
  3. Optionally, if you want to force a refresh of the UI, open the registry, go to the HKEY_CURRENT_USER\Software\Jetbrains\Resharper\v3.1\vs9.0 and set the One-Time Initialization Generation to the current date
Filed under:

Comments

# JH said on Thursday, April 03, 2008 9:55 AM

Thanks for the post!

Leave a Comment

(required) 
(required) 
(optional)
(required)