Create NUnit test with resharper - visual-studio-2010

I installed Resharper 5 with visual studio 2010 Team system with NUnit. It finds NUnit and shows 2 types of tests in the options: MSTest and NUnit.
I can create a MSTest by right clicking the function. How do I accomplish this same thing but for NUnit?

AFAIK, there's no way to do this automatically.

Related

Nunit tests are not shown in Test Explorer of VS2013 Express

I have visual studio 2013 express edition and I have referenced NUnit 2.6.2 version DLL, but I don't know why the Test Explorer is not showing the test cases.
I did searched for questions with similar problem and tried doing what suggested like the Nunit Framework from NuGet package and making sure the Nunit reference and adapter version are correct, etc. but none of them resolved the issue.
Right now I have cleaned up everything from my Visual Studio and have only Nunit 2.6.2 DLL added in reference.
Following is the out put from Package manager console.
PM> Get-Package
No packages installed.
Can someone please help me to know how to get the Nunit tests in my Test Explorer ?
You need the NUnit Test Adapter and not the NUnit 3 Test Adapter since you are using version 2.
Sorry... The NUnit Test Adapter and the NUnit 3 Test Adapter are both Visual Studio extensions. The Express editions of Visual Studio don't support extensions. Period.
You need to switch to either VS2015 or VS2017 Community Edition, which do support extensions. Then you can install either of the two adapters - depending on what version of the NUnit framework you are using.

Resharper 2016.3.1 not running MSTest in VS 2017 RC

I can not to run MsTest unit tests in visual studio 2017 RC using resharper 2016.3.
I select run test in drop-down menu, but resharper not show progress running in Unit Test Session Window.
What am I doing wrong?
According to the JB site, R# unit testing assistance in ASP.NET Core and .NET Core projects will not work with visual studio 2017 RC. Unclear if this applies to you though.
https://www.jetbrains.com/help/resharper/2016.3/Unit_Testing__Index.html

Optimal NUnit integration in Visual Studio

I am doing a demo, and want Nunit better integrated in Visual Studio.
Menu options to Create NUnit test project and test class with reference to the framework (Like Microsoft Test does)
Run/Debug "selected tests" and individual tests with debugging. I don't get it to work with [TestCase]-attribute, seems to run all testcases for a test.
Run failed tests with debugging.
Other cool stuff.
(Visual Studio 2015 RC)
I see some plugins in the gallery, but I am not sure if they do 1-3, and if they work.
Try NUnit Test Adapter or NUnit3 Test Adapter from the makers of NUnit, or ReSharper if you want test runners and more.
You can make you own Visual Studio project templates but I'd just use the basic class library and nuget to get nunit libraries
They won't give you everything but it can be start.

Test templates missing in visual studio 2010 ultimate

Test templates such as Coded-UI testing and Web performance testing are missing.
I originally had visual studio 2010 professsional installed. I upgraded to visual studio 2010 ultimate just so that I wanted to use Coded-UI testing and Web performance testing features.
However, the options seem to be missing. It is as if the upgrade has not made a difference with regards to additional testing templates.
I have a visual studio 2010 ultimate evaluation version installed.
I have checked in Tools > Options > Test tools: but doesn't seem to have anything in here that I can change. Searched online too, everywhere seem to suggest that after VS 2010 Ultimate installed, you should be have the templates to create the additional tests.
If I go to menu, Test > New test > Add new test dialog,
Here I just have "Basic Unit test", "Ordered test", "Unit test", "Unit Test wizard"
Have also tried, Right click the Test project, Add > no option for Coded-UI test here!
Has anyone come across anything like this?
Any advice is appreciated,
Thanks, Fred
Edit 09:22 GMT 26-05-2012:
I used the visual studio ultimate web-installer. I double checked the options to select while installation. There is no option specific to testing here. So, selected Visual C# + Visual Web developer + Graphics library
I had this issue when upgrading from VS2010 Professional to VS2010 Ultimate. I think it may have been caused by having already installed SP1 in Professional. I solved it by doing the following:
Go into Windows Add/Remove programs and run a Repair against VS2010 (takes a LONG time).
You might need a reboot, do not skip the reboot if prompted.
Re-run VS2010 SP1 setup and run Repair when prompted (takes a LONG time).
That should do the trick! Run up VS2010 and the templates should now be accessible!
Good luck!

MSTest in Express editions of Visual Studio 2010

I'm leaning toward using MSTest as unit testing framework for a new project but I'm concerned with cutting off developers (maybe even myself in the future and/or in some specific environment) using Express editions of Visual Studio.
I know MSTest wasn't available in VS2008 Express but with Microsoft pushing unit testing in recent years I guess they could've added it to VS2010 Express. However I couldn't find any info on this in the list of Express features and I don't want to download and install express just to verify this.
So, is MSTest supported in Visual Studio 2010 Express?
It does not appear in Microsoft's list of features of Visual Studio Express 2010, and it would appear (according to this blog post) that it is not supported. Since express editions do not allow add-ins, you cannot even use something like TestDriven.net to run tests from within Visual Studio Express editions.
If you were to use NUnit for testing, you may get more mileage. That blog post shows a way of running/debugging NUnit tests using a bootstrapper, but an easier way is to set NUnit as the start action (in Project Properties -> Start External Program), and then passing the name of your dll as an argument. This will start and run NUnit when you run/debug your project, allowing you launch your tests from within Visual Studio, and also debug them if needed.

Resources