Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resharper 8 and Test Explorer not finding xUnit tests in VS2013

I have the following test code. But cant see the tests in either Test Explorer or Resharper. What am I missing? I have made the class public, I have tried cleaning the project, i have tried both default architectures in the test settings. I am running Windows 7. xUnit 1.9.2, Resharper 8.1 Full Edition

using Xunit;
namespace MonkeyFace.Specs.Registration
{
    public class ValidApplicationReceived
    {
        [Trait("A valid application is submitted","")]
        [Fact(DisplayName= "A user is added to the system")]
        public void User_is_Add_To_System()
        {
            Debug.Print("hi");
            Assert.Equal(1,1);
        }
like image 349
Kirsten Avatar asked Mar 07 '14 02:03

Kirsten


2 Answers

Do you have the xunit ReSharper runner extension installed? You need to install it from ReSharper -> Extension Manager.

If it's installed, do you see anything in the editor? Any icons next to the class or method to indicate tests?

like image 118
citizenmatt Avatar answered Sep 28 '22 01:09

citizenmatt


I had to install the xUnit.net runner for Visual Studio 2012 and 2013 by using the Tools -> Extensions and Updates menu in Visual Studio

like image 32
Kirsten Avatar answered Sep 28 '22 01:09

Kirsten