This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
15 Replies Last post: Aug 4, 2009 12:17 PM by Nika Schulz  
Stuart Carnie Newbie 5 posts since
Apr 22, 2009
Currently Being Moderated

Apr 22, 2009 10:13 PM

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

Serge Baltic JetBrains 881 posts since
Oct 4, 2004
Currently Being Moderated
Apr 23, 2009 3:44 PM in response to: Stuart Carnie
Re: Resharper 4.5 with NUnit 2.5 Beta 3

Hello,

 

When running unit tests, the ExpectedException() 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!”

 

 

 

Henning Eiben Newbie 19 posts since
Dec 1, 2008
Currently Being Moderated
Apr 28, 2009 11:45 AM in response to: Serge Baltic
Re: Resharper 4.5 with NUnit 2.5 Beta 3

On 23.04.2009 13:24, Serge Baltic wrote:

 

>> When running unit tests, the ExpectedException() 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 ...

 

Jolyon Fahy Newbie 1 posts since
Jun 4, 2009
Currently Being Moderated
Jun 4, 2009 2:13 PM in response to: Henning Eiben
Re: Resharper 4.5 with NUnit 2.5 Beta 3

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

 

However VS2008 ignores it

abby fichtner Newbie 2 posts since
Jul 6, 2009
Currently Being Moderated
Jul 6, 2009 12:23 AM in response to: Stuart Carnie
Re: Resharper 4.5 with NUnit 2.5 Beta 3

So what are JetBrain's plans to resolve this?

Ilya Ryzhenkov JetBrains 2,694 posts since
Apr 13, 2004
Currently Being Moderated
Jul 6, 2009 2:21 PM in response to: abby fichtner
Re: Resharper 4.5 with NUnit 2.5 Beta 3

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

 

 

 

Victor Derks Newbie 1 posts since
Jul 6, 2009
Currently Being Moderated
Jul 6, 2009 6:52 PM in response to: Ilya Ryzhenkov
Re: Resharper 4.5 with NUnit 2.5 Beta 3

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?

Ilya Ryzhenkov JetBrains 2,694 posts since
Apr 13, 2004
Currently Being Moderated
Jul 6, 2009 8:21 PM in response to: Victor Derks
Re: Resharper 4.5 with NUnit 2.5 Beta 3

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> ExpectedException() 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

 

 

 

Steve Culshaw Newbie 5 posts since
Jul 21, 2009
Currently Being Moderated
Jul 21, 2009 12:08 PM in response to: Ilya Ryzhenkov
Re: Resharper 4.5 with NUnit 2.5 Beta 3

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

Steve Culshaw Newbie 5 posts since
Jul 21, 2009
Currently Being Moderated
Jul 27, 2009 6:44 PM in response to: Steve Culshaw
Re: Resharper 4.5 with NUnit 2.5 Beta 3

Excellent, I'll download and try it out

 

Cheers,

SteveC.

Nika Schulz Newbie 3 posts since
Jul 27, 2009
Currently Being Moderated
Jul 27, 2009 6:15 PM in response to: Ilya Ryzhenkov
Re: Resharper 4.5 with NUnit 2.5 Beta 3

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!

abby fichtner Newbie 2 posts since
Jul 6, 2009
Currently Being Moderated
Jul 27, 2009 6:29 PM in response to: Nika Schulz
Re: Resharper 4.5 with NUnit 2.5 Beta 3

awesome, thanks!

Steve Culshaw Newbie 5 posts since
Jul 21, 2009
Currently Being Moderated
Jul 28, 2009 11:23 AM in response to: Nika Schulz
Re: Resharper 4.5 with NUnit 2.5 Beta 3

Nika,

 

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

 

Cheers,

SteveC.

Nika Schulz Newbie 3 posts since
Jul 27, 2009
Currently Being Moderated
Jul 29, 2009 11:20 AM in response to: Steve Culshaw
Re: Resharper 4.5 with NUnit 2.5 Beta 3

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.

Steve Culshaw Newbie 5 posts since
Jul 21, 2009
Currently Being Moderated
Jul 29, 2009 2:14 PM in response to: Nika Schulz
Re: Resharper 4.5 with NUnit 2.5 Beta 3

Sorry Nika, my apologies

 

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

Nika Schulz Newbie 3 posts since
Jul 27, 2009
Currently Being Moderated
Aug 4, 2009 12:17 PM in response to: Steve Culshaw
Re: Resharper 4.5 with NUnit 2.5 Beta 3

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

More Like This

  • Retrieving data ...