xunitcontrib-resharper 0.5.2 - ReSharper 6.1 support

by Matt 22. December 2011 12:35

ReSharper 6.1 has just been released. It’s better than 6.0, and it’s a free download, so go and get it. And then download the latest version of xunitcontrib to get support for your xUnit.net tests.

This version contains plugins for ReSharper 6.1, 6.0 and 5.1.3. I plan to only support the most recent revisions of the last two major versions, so that means 6.1 and 5.1.3. So, I’ll be moving 6.0 into the archive release very soon.

This is a small update. The important news is the support of ReSharper 6.1, but there was still chance to squeeze in a new feature.

ReSharper 6.0 added a nice little feature for running the derived instances of test methods defined in an abstract test method. To explain that a bit better, assume you’ve got an abstract base class that contains a test method:

public abstract class AbstractBaseClass
    public void TestMethod()
        // ...

and then a derived class:

public class DerivedClass : AbstractBaseClass
    // ...

ReSharper 6.x provides support for adding a marker next to AbstractBaseClass.TestMethod that gives a drop down menu allowing you to run TestMethod in one or all of the derived test classes. Something like this:


Unfortunately, 6.0 doesn’t provide enough support to get the naming correct everywhere in the UI. You can either specify the name as DerivedClass.TestMethod (which makes most sense when used in this drop down) or BaseClass.TestMethod (which reads better in unit test explorer and runner windows).

I’ve chosen to use BaseClass.TestMethod, because I think it’s more useful that the names are correct in the unit test explorer/runner windows (the built in nunit plugin uses DerivedClass.TestMethod). Annoyingly, this means the drop down isn’t terribly helpful:


The good news is that this all works correctly in 6.1.

So, what are you waiting for? Go upgrade.

Tags: , ,


Comments (11) -

Victor Kropp
Victor Kropp
12/22/2011 8:20:03 PM #

Hi Matt,

there is a way to get correct naming everywhere. Contact me and I'll show you the trick.


Adam Anderly
Adam Anderly
1/26/2012 4:52:53 PM #

I've got VS 2010 installed and ReSharper 6.1 and have downloaded this xunit released and installed the plug-in, but ReSharper doesn't show XUnit under unit testing tools and doesn't detect my tests. Do you have any 6.1-specific install instructions. I did use the 6.1 version of the plugin files and dropped them in %Program Files%\JetBrains\ReSharper\Bin\plugins\xunitcontrib.


Philix United States
11/27/2015 3:41:14 PM #

Wonderful Website.


Willis Karam
Willis Karam United States
1/6/2016 3:53:57 PM #

Congrats! So glad to see this site getting the recognition it deserves, the world can always use a little more awesome.


Ronnie Motter
Ronnie Motter United States
1/15/2016 4:34:13 AM #

yeah, except the "dolphin saving you" one


Chang Carbonneau
Chang Carbonneau United States
1/15/2016 6:07:37 AM #

AWESOME!Can't wait for that, will be something to want to accomplish day by day, to do something AWESOME!


Rosario Carello
Rosario Carello United States
1/15/2016 6:43:08 AM #

this is awesome like the book of awesome


backlinks google
backlinks google United States
1/26/2016 12:09:13 AM #

Not merely quality, yet additionally valuable info. As well as that is uncommon to come by these days! I have to claim that I am really impressed and will surely come back once again if you maintain up the reputable and also value of the material at this degree, or also acquire it on the following degree.


Erlene Detemple
Erlene Detemple United States
3/24/2016 9:41:41 AM #

Appreciate it so much for give this information. This is the smart choice to keep things interesting


gay chat rooms
gay chat rooms United States
3/24/2016 3:37:16 PM #

Appreciate it a great deal for give these facts. This can be a most suitable option to keep things interesting


Vicente United States
4/1/2016 3:02:04 PM #

Hi! I know as a like-minded determined blogger that it can be at times quite hard to get people to read your creations. So I made this new tool that you should absolutely get. A free Twitter Tumblr automation tool that will help you get your content seen by a lot of people. Get it here now http://bit.ly/Free-Bots If you like it tweet me what you think on @Automationbots. Cheers!


Pingbacks and trackbacks (1)+

Add comment

  • Comment
  • Preview


Month List


Comment RSS