NUnit addins: where to stick them so R# picks them up?

Hello all,

I am developing an NUnit addin.  The add-in runs fine under nunit-console.exe.  Now I am trying to get the addin to run under R# 5.

Q: What directory do I need to stick my NUnit addin into in order to have the R# NUnit runner see the addin?

I've tried these locations:
<ReSharper 5 install root>\Bin\addins
<ReSharper 5 install root>\Bin\bin\addins

Neither of those seem to work.

I've ensured that I'm building the addin against the same version of NUnit that is used internally by my version of ReSharper.

ReSharper 5.0: Build 5.0.1659.36 on 2010-04-13T02:19:06
Bundled NUnit Version: 2.5.3.9345

Thanks for any thoughts on this!

Sincerely,
Todd Fiala

11 comments
Comment actions Permalink

FWIW, based on some other posts here, I decided to try an alternate route.  I'm now trying to run R# tests via the Gallio system and its plugin for R#.  Gallio appears to have support for supplying NUnit add-ins to their NUnit plugin.

So now my challenge is to find a version of Gallio that works with R# 5.  The latest Gallio release as of this writing (3.1.397.0) doesn't support R# 5 (not surprisingly, as it was released in 2009).  Fortunately, Gallio releases nightly builds.  I tried nightly GallioBundle 3.2.442.0.  That has support for R# 5.

Unfortunately, and also not surprisingly, the nightly build is not stable.  I can't get it to load any of my nunit projects without failing on some internal Icarus exceptions.

The good news is, this does appear to be a viable path as soon as I can find a stable Gallio build with R# 5 support.  I post this so that hopefully you, the reader, have a solution by the time you get here :-)

Jetbrains folks: I've been using the Jetbrains dotCover EAP.  If I use the Gallio NUnit test runner support (instead of the jetbrains nunit support) for the nunit add-ins support, will I still be able to use the dotCover test code coverage on the nunit tests?

Thanks!

Sincerely,
Todd Fiala

0
Comment actions Permalink

Hello,

AFAIK you should set up R#5 to use your own NUnit installation instead of
the build-in one in order to use NUnit plugins.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0
Comment actions Permalink

Thanks, Serge.  That sounds like exactly what I need.  Perhaps I missed where I can set the NUnit version that R# uses.  Can you indicte how to set the NUnit installation that R# 5 uses?

Thanks!

Sincerely,
Todd Fiala

0
Comment actions Permalink

I just tried that so I could use the latest NUnit 2.5.5 and discovered that
ReSharper is is looking for the NUnit DLLs in %ProgramFiles%\NUnit
2.5.5\bin\net-2.0\lib. Looks like the layout may have changed because
nunit.framework.dll is in %ProgramFiles%\NUnit 2.5.5\bin\net-2.0\framework
and the others are in %ProgramFiles%\NUnit 2.5.5\bin\net-2.0\lib. Works fine
after I copied nunit.framework.* into the lib folder.

"Serge Baltic" <baltic@intellij.net> wrote in message
news:dc0986bf155d358cccef6b6d376a8@news.intellij.net...

Hello,

>

AFAIK you should set up R#5 to use your own NUnit installation instead of
the build-in one in order to use NUnit plugins.

>


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”

>

0
Comment actions Permalink

Hi Todd,

Could you help me to get the R# 5.0 / Gallio 3.2.445 combo working with VS 2005? I have installed VS 2005, then R#5, then Gallio with all the default settings in default locations:

C:\Program Files\Microsoft Visual Studio 8
C:\Program Files\JetBrains\ReSharper\v5.0

C:\Program Files\Gallio\bin

I created a simple project in VS 2005 that references Gallio.dll and MbUnit.dll from the Gallio\bin folder.

using System;
using System.Collections.Generic;
using System.Text;
using MbUnit.Framework;

namespace UnitTest
{
    [TestFixture]
    public class Class1
    {
        [Test]
        public void SimpleTest()
        {
            System.Console.WriteLine("Hello");
            Assert.AreEqual("test", "failed");
            
        }
    }
}

Unfortunately R# doesn't recognize my unit tests and displays an error message ("No test found in file"). I suspect that R# should be configured to recognize MbUnit / Gallio but Resharper/Plugins... menu doesn't have an Add / Browse  button) and Resharper / Options / Tools / Unit Testing mentions only MSTest and nUnit and doesn't allow to select something else. On the other side, the Gallio Control Panel doesn't mention any R# plugings and Icarus doesn't have them listed in the Plugins dialog.

I looked on the Internet but have found only very old threads on the Google code site. Would apreciate your help

With best regards,
Kirill

0
Comment actions Permalink

Hello Kirill,

In case ReSharper > Plugins window is empty, there's some problem with Gallio
plug-in for ReSharper which is required to run the MbUnit tests. Do you have
a Gallio folder under C:\Program Files\JetBrains\ReSharper\v5.0\Bin\Plugins?
Thank you!

Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi Todd,

Could you help me to get the R# 5.0 / Gallio 3.2.445 combo working
with VS 2005? I have installed VS 2005, then R#5, then Gallio with all
the default settings in default locations:

C:\Program Files\Microsoft Visual Studio 8
C:\Program Files\JetBrains\ReSharper\v5.0
C:\Program Files\Gallio\bin
I created a simple project in VS 2005 that references Gallio.dll and
MbUnit.dll from the Gallio\bin folder.

using System;
using System.Collections.Generic;
using System.Text;
using MbUnit.Framework;
namespace UnitTest
{

public class Class1
{

public void SimpleTest()
{
System.Console.WriteLine("Hello");
Assert.AreEqual("test", "failed");
}
}
}
Unfortunately R# doesn't recognize my unit tests and displays an error
message ("No test found in file"). I suspect that R# should be
configured to recognize MbUnit / Gallio but Resharper/Plugins... menu
doesn't have an Add / Browse  button) and Resharper / Options / Tools
/ Unit Testing mentions only MSTest and nUnit and doesn't allow to
select something else. On the other side, the Gallio Control Panel
doesn't mention any R# plugings and Icarus doesn't have them listed in
the Plugins dialog.

I looked on the Internet but have found only very old threads on the
Google code site. Would apreciate your help

With best regards,
Kirill
---
Original message URL:
http://www.jetbrains.net/devnet/message/5264649#5264649



0
Comment actions Permalink

Hello Andrey,

As you suspected, I do not have a Plugins folder in my Resharper\bin. I have tried to "Repair" R# installation, but it hasn't created a Pluging folder. I have to try to install Gallio 3.2.442 that worked fror Todd. For time being what should be in this folder? I searched in my Gallio\bin folder and havent found any "Resharper" text in DLLs or XML files. What do you have in your Plugin folder?

Thank you for a quick reply.

Kirill

0
Comment actions Permalink

Andrey,

I downloaded a ZIP file for the same version of Gallio and copied files from the bin\Resharper\5.0 to the JetBrains\Resharper\5.0\bin\Plugins\Gallio. After that Resharper has recognized MbUnit framework and everything worked fine. Thank you for the clue.

-Kirill

0
Comment actions Permalink

Hello,

There're unit-test-provider-specific options in addition to R# unit testing
options. To see them, select a unit test provider in the list.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0
Comment actions Permalink

Hello,

I just tried that so I could use the latest NUnit 2.5.5 and discovered
that ReSharper is is looking for the NUnit DLLs in
%ProgramFiles%\NUnit 2.5.5\bin\net-2.0\lib. Looks like the layout may
have changed because nunit.framework.dll is in %ProgramFiles%\NUnit
2.5.5\bin\net-2.0\framework and the others are in %ProgramFiles%\NUnit
2.5.5\bin\net-2.0\lib. Works fine after I copied nunit.framework.*
into the lib folder.


What's the path you specify in R# options? Is it  %ProgramFiles%\NUnit 2.5.5\bin\net-2.0\framework,
or just %ProgramFiles%\NUnit 2.5.5?


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0
Comment actions Permalink

Hello,

The Plugins folder is not created by the R# installer. It could be created
by plugin installers (if installed per-machine), or otherwise plugins could
install to AppData locations (per-user).


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0

Please sign in to leave a comment.