Resharper 4.5 and NUnit 2.5

Is there a way to get resharper 4.5 to use NUnit 2.5?  My project is referencing the NUnit 2.5 but it does not appear to work the way NUnit 2.5 should be working.

Specifically the The TestFixtureSetUp attribute is inherited from any base class 2.5 feature.  Would I be able to replace the DLL of NUnit in Resharper's program files folder and get it to work?

3 comments
Comment actions Permalink

Hello,

Is there a way to get resharper 4.5 to use NUnit 2.5?  My project is
referencing the NUnit 2.5 but it does not appear to work the way NUnit
2.5 should be working.


ReSharper 4.5 is not bound to any particular NUnit version. It just looks
for any NUnit-related attributes by their fully-qualified names, regardless
of the DLL they're defined in (or even right in the source code of your project).
ReSharper 4.5 does not use the external NUnit engine for running the tests.
So it does not matter where the attributes are defined. Either the ReSharper
internal unit testing engine knows about these attributes and runs them,
or it's not up-to-date to know about these attributes and will not run them
no matter what.

ReSharper 5, on the contrary, uses NUnit itself for running tests. You can
tell ReSharper 5 which exactly NUnit version to put to use.


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


0
Comment actions Permalink

I can't wait for ReSharper 5.0!  That will be nice and if it is able to use forward versions of nunit that will greatly be rewarding.  What I have found is the runtime of ReSharper 4.5 acts like 2.4 nunit and does not act like ununit 2.5 which means I have figured out a hack to work for ReSharper executed tests that work for the enhancement added to 2.5.  Pretty simple really I just make sure to call base.

0
Comment actions Permalink

Hello,

ReSharper 5 is in Beta 2 and is available for free evaluation at http://confluence.jetbrains.net/display/ReSharper/ReSharper5.0Nightly+Builds.


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


0

Please sign in to leave a comment.