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
{
    [Fact]
    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:

image

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:

image

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

So, what are you waiting for? Go upgrade.

Tags: , ,

xunitcontrib

Comments (29) -

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.

Reply

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.

Reply

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

Wonderful Website.

Reply

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.

Reply

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

yeah, except the "dolphin saving you" one

Reply

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!

Reply

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

this is awesome like the book of awesome

Reply

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.

Reply

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

Reply

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

Reply

Vicente
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!

Reply

pożyczka
pożyczka United States
6/23/2016 8:02:21 AM #

pierwsza pożyczka za 0 zł! Bez dodatkowych opłat i prowizji    okres kredytowania aż do 35 dni    dla stałych klientów nawet 4 000 zł bez zabezpieczenia    możliwość spłaty w ratach!

Reply

pożyczki
pożyczki United States
6/23/2016 8:08:02 AM #

pożyczki pozabankowe

Reply

POŻYCZKA POZABANKOWA
POŻYCZKA POZABANKOWA United States
6/23/2016 8:08:32 AM #

Pożyczka pozabankowa Net Credit

Reply

POŻYCZKA POZABANKOWA
POŻYCZKA POZABANKOWA United States
6/23/2016 8:10:40 AM #

POŻYCZKA POZABANKOWA

Reply

POŻYCZKA
POŻYCZKA United States
6/23/2016 8:12:23 AM #

pierwsza pożyczka za 0 zł! Bez dodatkowych opłat i prowizji    okres kredytowania aż do 35 dni    dla stałych klientów nawet 4 000 zł bez zabezpieczenia    możliwość spłaty w ratach!

Reply

POŻYCZKI
POŻYCZKI United States
6/23/2016 8:37:43 AM #

pierwsza pożyczka za 0 zł! Bez dodatkowych opłat i prowizji    okres kredytowania aż do 35 dni    dla stałych klientów nawet 4 000 zł bez zabezpieczenia    możliwość spłaty w ratach!

Reply

POŻYCZKA POZABANKOWA
POŻYCZKA POZABANKOWA United States
6/23/2016 9:03:42 AM #

POŻYCZKA POZABANKOWA

Reply

pożyczka
pożyczka United States
6/23/2016 9:23:44 AM #

pierwsza pożyczka za 0 zł! Bez dodatkowych opłat i prowizji    okres kredytowania aż do 35 dni    dla stałych klientów nawet 4 000 zł bez zabezpieczenia    możliwość spłaty w ratach!

Reply

DOMENY
DOMENY United States
6/25/2016 6:14:32 AM #

Rejestracja domen - Przedłużanie domen - Transfer domen

Reply

Rejestracja Domen
Rejestracja Domen United States
6/25/2016 6:19:38 AM #

Rejestracja domen - Przedłużanie domen - Transfer domen

Reply

REJESTRACJA DOMEN
REJESTRACJA DOMEN United States
6/25/2016 6:20:06 AM #

BEZPŁATNE KONTO HOSTINGOWE 5GB DLA KAŻDEJ REJESTRACJI NOWEJ POLSKIEJ DOMENY!

Reply

REJESTRACJA DOMEN
REJESTRACJA DOMEN United States
6/25/2016 6:22:23 AM #

BEZPŁATNE KONTO HOSTINGOWE 5GB DLA KAŻDEJ REJESTRACJI NOWEJ POLSKIEJ DOMENY!

Reply

DOMENY
DOMENY United States
6/25/2016 6:24:05 AM #

Transfer domen

Reply

rejestracja domen
rejestracja domen United States
6/25/2016 6:48:39 AM #

BEZPŁATNE KONTO HOSTINGOWE 5GB DLA KAŻDEJ REJESTRACJI NOWEJ POLSKIEJ DOMENY!

Reply

DOMENY
DOMENY United States
6/25/2016 7:19:58 AM #

Transfer domen

Reply

rejestracja domen
rejestracja domen United States
6/25/2016 7:42:23 AM #

Transfer domen

Reply

Rejestracja Domen
Rejestracja Domen United States
6/25/2016 8:49:49 AM #

rejestracja domen

Reply

Jeremy Opunui
Jeremy Opunui United States
6/26/2016 7:58:42 PM #

I believe that oneself contain supplied me some variables toward believe that above with your write-up. Your insight into this topic is made up of rather astonished me. Thank you.

Reply

Pingbacks and trackbacks (1)+

Add comment

biuquote
  • Comment
  • Preview
Loading

Rel=Me

Month List

RecentComments

Comment RSS