question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NUnit Test Adaptor 3.16.0 never displays results of test under Visual Studio 2015

See original GitHub issue

Scene:

  1. Window 10
  2. Microsoft Visual Studio Professional 2015 (v14,.0.25431.01 Update 3)
  3. NUnit 3.12.0
  4. NUnit Test Adaptor 3.16.0
  5. .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:closed
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
OsirisTerjecommented, Jan 18, 2020

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.

0reactions
ryanewtaylorcommented, Jan 11, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found