Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to visualize parametrized NUnit tests using the Resharper GUI?

I'm using the Unit Test Sessions window of ReSharper 5.1 in order to run NUnit tests. It gives great visualization and 90% of the time it is just what I need.

enter image description here

The only problem is that the Unit Test Sessions window does not support tests that have parameters. I would like to have a separate node for each value of the parameters, like in the screenshots here. In ReSharper I only see one node for the whole method, and there is no way to know which parameters it passed with and which parameters it failed with.

Is there any way that I can see the various runs in ReSharper, or do I need a different tool (and which one is the best)?

Thank you!

like image 851
Ilya Kogan Avatar asked Mar 17 '11 16:03

Ilya Kogan


People also ask

How do I use NUnit console runner in Visual Studio?

Just add NUnit tests to your project and they will now magically show up in the Test Explorer and run when you hit the > button. Instead of the NuGet package, you'll need to use the test runner from the Visual Studio Gallery or from the Tools -> Extensions and Updates menu.

How do I run NUnit tests in Visual Studio 2015?

From within Visual Studio 2012, 2013 or 2015, select Tools | Extension Manager. In the left panel of the Extension Manager, select Online Extensions. Locate (search for) the NUnit Test Adapter in the center panel and highlight it. Click 'Download' and follow the instructions.


1 Answers

The feature which you are requesting will be part of Resharper 6. See http://youtrack.jetbrains.net/issue/RSRP-147616.

In the meantime you could try to use gallio as stated here ReSharper Unit Test Runner - TestCase


As ReSharper 6 is now available you could find information about its TestCase support here http://hadihariri.com/2011/08/23/new-features-in-resharper-6-unit-test-runner/

like image 197
ccellar Avatar answered Oct 02 '22 21:10

ccellar