NUnit Test Adaptor 3.16.0 never displays results of test under Visual Studio 2015
See original GitHub issueScene:
- Window 10
- Microsoft Visual Studio Professional 2015 (v14,.0.25431.01 Update 3)
- NUnit 3.12.0
- NUnit Test Adaptor 3.16.0
- .NET Framework 4.5.2, x86
Repro:
- New class library project with one test fixture and test
using System;
using NUnit.Framework;
namespace UnitTests
{
[TestFixture]
public class UnitTest1
{
[Test]
public void TestMethod1()
{
Assert.AreEqual("hi", "bye");
}
}
}
Problem:
The results of the test are never fed back into the adapter. I always receive an error in the output window such as
------ Run test started ------ NUnit Adapter 3.16.0.0: Test execution started Running selected tests in C:\Dev\temp\TestNUnit\UnitTests\bin\x86\Debug\UnitTests.dll NUnit3TestExecutor converted 1 of 1 NUnit test cases NUnit Adapter 3.16.0.0: Test execution complete Test adapter sent back a result for an unknown test case. Ignoring result for ‘TestMethod1’. ========== Run test finished: 0 run (0:00:05.0390741) ==========
The test adapter can discover tests. I can also debug tests.
Temporary Solution:
Revert back to NUnit Test Adaptor 3.15.1.0 which does not seem to exhibit this issue.
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Unable to run NUnit tests after upgrading to VS2022 17.4.0
Restart Visual Studio to finish the process". Restarted it several times but the error persisted and Nunit tests wouldn't run.
Read more >Adapter V3 Release Notes
NUnit3 Test Adapter for Visual Studio - Version 3.17.0 - July 11, 2020 ... NUnit Test Adaptor 3.16.0 never displays results of test...
Read more >nunit tests discovered but not running
Hi, I have NUnit 3.12 and Nunit3TestAdaptor 3.15.1 installed, using VS2019 community. I am able to discover the tests in the test explorer ......
Read more >Integrating NUnit into Visual Studio Test Explorer
It turns out that NUnit *can* integrate with the Visual Studio Test Explorer. It's not quite as complete as MSTest, but it's definitely...
Read more >NUnit3TestAdapter 4.5.0
The NUnit 3 Test Adapter runs NUnit 3.x tests in Visual Studio 2012 and newer. You can download the latest release version alternate...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This issue is resolved by Version 3.16.1 which is released now on nuget.org and VSIX on Visual Studio marketplace. See all issues resolved and Release notes for details.
@sanhin This worked for me, YMMV.
I uninstalled the NUnit Test Adaptor and restarted Visual Studio to ensure it was removed. Soemtimes, it remained installed 🤷♂. I repeated the uninstall and restart a couple times until it no longer showed in Extensions and Updates.
Then, with Visual Studio closed I installed the 3.15.1.0 version through the releases. Finally, I unchecked the “Automatically update this extension” and I have remained at v3.15.1.0 for a few days.