Resharper 4.5 with NUnit 2.5 Beta 3

When running unit tests, the [ExpectedException()] attribute is being ignored, and the tests are failing.  The same tests run fine in NUnit Test Runner.

If I use Assert.Throws<>(delegate), it works.

Cheers,

Stu

15 comments

Hello,

When running unit tests, the attribute is being
ignored, and the tests are failing. The same tests run fine in NUnit
Test Runner.


R# is not using NUnit assemblies for running the tests (there used to be
licensing issues), and only a certain subset of NUnit features is currently
supported. For many cases (including our tests), that's enough. MSTest runner,
on the contrary, is fully-functional in R#.

If you need the full functionality of NUnit, the http://www.gallio.org/ plugin
for ReSharper could be an option.


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


0

On 23.04.2009 13:24, Serge Baltic wrote:

>> When running unit tests, the attribute is being
>> ignored, and the tests are failing. The same tests run fine in NUnit
>> Test Runner.


R# is not using NUnit assemblies for running the tests (there used to be
licensing issues), and only a certain subset of NUnit features is
currently supported. For many cases (including our tests), that's
enough. MSTest runner, on the contrary, is fully-functional in R#.

If you need the full functionality of NUnit, the http://www.gallio.org/
plugin for ReSharper could be an option.


But wasn't there a similar thread on this topic recently ... or was it
on the NUnit mailing list? - Anyway; AFAIK the Gallio plugin for R# also
only supportset of NUnit features :(

The Gallio client does support NUnit completely however ...

0

I used R# 4.5 with VS2005 and the expected exceptions got picked up correctly ....

However VS2008 ignores it

0

So what are JetBrain's plans to resolve this?

0

Hello abby,

NUnit 2.5 support (and hopefully many other compatible versions) is being
rewritten for ReSharper 5.

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


af> So what are JetBrain's plans to resolve this?
af>
af> ---
af> Original message URL:
af> http://www.jetbrains.net/devnet/message/5241272#5241272


0

We just upgraded to NUnit 2.5 and we also discovered that [ExpectedException()] doesn't work anymore in the ReSharper unittest runner. We are using Reshaper v4.5 at the moment.

It used to work in Nunit 2.4.8. Is there a patch scheduled (for example 4.5.1) that will fix this?

0

Hello Victor,

Try latest nightly builds for ReSharper 4.5.1. NUnit developers decided to
change API.

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


IR> We just upgraded to NUnit 2.5 and we also discovered that
IR> doesn't work anymore in the ReSharper unittest
IR> runner. We are using Reshaper v4.5 at the moment.
IR>
IR> It used to work in Nunit 2.4.8. Is there a patch scheduled (for
IR> example 4.5.1) that will fix this?
IR>
IR> ---
IR> Original message URL:
IR> http://www.jetbrains.net/devnet/message/5241309#5241309


0

Ilya, just to confirm, you reckon the nightly build has a fix to the failure to handle the ExpectedException issue ?

0

R# 4.5.1274.1 runs NUnit 2.5.1 tests marked with [ExpectedException] perfectly, while 4.5.1231.7 failed. Thank you for help!

0

Excellent, I'll download and try it out

Cheers,
SteveC.

0

Nika,

do you have any details on which of the new NUnit attributes, e.g. TestCaseAttribute, Resharper supports ?

Cheers,
SteveC.

0

Unfortunately not, I came to this problem accidentally, and then tried new R# build to resolve it. And I was just lucky that R# team did it :) But if I find some complete list of supported NUnit features, it I'll let you know.

0

Sorry Nika, my apologies

I'd been working on the presumption you were a JetBrains person ... not spotted the lack of JB logo  :-(         

0

Oh, I wish I were in JetBrains team, just love 'em

0

Please sign in to leave a comment.