1

I went to bed last night with all the tests showing up, reloaded the project today and the VS test runner isn't picking anything up no matter what I try.

I had a similar issue yesterday when I loaded up the project, but resolved it by adding a reference to Microsoft.DotNet.InternalAbstractions - as suggested in this post: Link. But it's now doing the same thing even with the reference. I've also now tried almost all the answers in the post to no avail.

I've compared to a basic console project that works and the references are identical apart from the main project being included:

enter image description here

I've added this test and nothing shows.

using Xunit;

namespace LearnOnlineAppTests
{
    public class BaseTest
    {
        [Fact]
        public void DummyTest()
        {
            Assert.True(true);
        }
    }
}

Also been through this: Xunit documentation

Using VS2017 Professional without ReSharper.

b_en
  • 110
  • 1
  • 2
  • 9

1 Answers1

3

Missed an incredibly important step, and one that was mentioned in multiple places.

Xunit.runner.visualstudio was not included in the project.

b_en
  • 110
  • 1
  • 2
  • 9