Getting NUnit Working in Visual Studio

After the upheaval of moving offices, I am starting to settle into my new normal routine. Overall I am much happier in my new hole in the ground. Business was crazy but has tapered off a bit as summer starts its decline in earnest. During this break, I am learning .NET CORE in preparation for the release of .NET Framework 5 this November. In doing this I ran into a slight problem with NUnit and Visual Studio.

While I did not feel it was worth the trouble to upgrade to Visual Studio 2019 when I was using .NET Framework, the advantages gained by doing that to get CORE 3 are well worth the trouble. I am currently in the process of learning CORE and so I have moved into CORE 3 but I ran into a little issue.

My test tab was missing and I could not run my unit tests. It ain’t easy to run your NUnit tests in Visual Studio when your shit is missing.

Change this Subheading

Image Box Title

Change this description

NUnit is missing in Visual Studio

As I use NUnit for my unit tests, installing crap to get them going is a normal mode of business but this was different. I always forget the process to do when I need to get that tab windows up and running. As a result of my forgetful ways, I am going to document it for me and you. Lets dig into it.

Start Fixing Nunit and Visual Studio by Getting the Extension needed.

Change this Subheading

Image Box Title

Change this description

Start by going to Extension=>Manage Extension.

Change this Subheading

Image Box Title

Change this description

Grab your NUnit Test adapter and press the Download button.

Change this Subheading

Image Box Title

Change this description

After that close everything so that the installer can do it thing. Note you will have to close all Visual Studio instance. I think that includes SQL Server Management instance though I did not test this.

Change this Subheading

Image Box Title

Change this description

Watch it bump and grind.

Change this Subheading

Image Box Title

Change this description

Accept the modifications to Visual Studio by pressing the Modify button.

Change this Subheading

Image Box Title

Change this description

If you failed to get everything closed, exterminate the offending software through the End Tasks button.

Enjoy the bumping and grinding some more.

Change this Subheading

Image Box Title

Change this description

Finally, it will be done. Press the close button and open Visual Studio.

Change this Subheading

Image Box Title

Change this description

Test Results become available so now you can use NUnit in Visual Studio.

Now, this is stupid easy but I have to look it up every single time, I switch IDE’s so hopefully, I won’t have that issue with NUnit any longer and neither will you.

My pace of posting will likely be less and more erratic. I am learning a bunch of new stuff and starting to gear up on my first independent piece of software. It is exciting and I will be giving updates as I do. Right now I am finalizing the details of the app and what technology stack I am going to use. Right now, I will be building it in .NET CORE but the front end is more of a mystery. There are a couple of candidates, including giving Xamarin another try.

Leave a Reply

Your email address will not be published.