How to fix NUnit tests that aren't showing in Visual Studio Test Explorer

Every now and then a project I'm working on decides it's either going to not show some or (more annoyingly!) all of the NUnit unit tests that are present. 

The most recent project I've seen this with had the following versions of NUnit and NUnit3TestAdapter, though I've seen it with others:

<package id="NUnit" version="3.10.1" targetFramework="net47" />
<package id="NUnit3TestAdapter" version="3.13.0" targetFramework="net47" />

The fix is simple: go to the C:\Users\[YOUR USERNAME HERE]\AppData\Local\Temp\VisualStudioTestExplorerExtensions folder and delete its contents. You will need to close Visual Studio to release locks on some files first.

About Rob

I've been interested in computing since the day my Dad purchased his first business PC (an Amstrad PC 1640 for anyone interested) which introduced me to MS-DOS batch programming and BASIC.

My skillset has matured somewhat since then, which you'll probably see from the posts here. You can read a bit more about me on the about page of the site, or check out some of the other posts on my areas of interest.

No Comments

Add a Comment