Tests are not visible by Visual Studio 2015
NickName:rad Ask DateTime:2015-12-09T00:59:44

Tests are not visible by Visual Studio 2015

My tests are not visible in visual studio 2015 with DNX46 (Test > Windows > Test Explorer)

I can run them from the console (with dnx test). Bellow the project.json of my test project

{
  "version": "1.0.0-*",
  "description": "project Class Library",
  "authors": [ "me" ],
  "tags": [ "" ],
  "projectUrl": "",
  "licenseUrl": "",
  "frameworks": {
    "dnx46": { }
  },
  "commands": {
    "test": "xunit.runner.dnx"
  },
  "dependencies": {
    "Microsoft.AspNet.TestHost": "1.0.0-rc1-final",
    "NSubstitute": "1.9.2",
    "Search": "1.0.0-*",
    "Search.Infrastructure": "1.0.0-*",
    "Search.Model": "1.0.0-*",
    "Swagger.Net.UI": "1.1.0",
    "xunit": "2.1.0",
    "xunit.runner.dnx": "2.1.0-rc1-build204"
  }
}

I tried to install SideWaffle, maybe something was missing in my project, but same issue.

Copyright Notice:Content Author:「rad」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/34161691/tests-are-not-visible-by-visual-studio-2015

More about “Tests are not visible by Visual Studio 2015” related questions

Tests are not visible by Visual Studio 2015

My tests are not visible in visual studio 2015 with DNX46 (Test > Windows > Test Explorer) I can run them from the console (with dnx test). Bellow the project.json of my test project { "version...

Show Detail

Async unit tests are not visible in Visual Studio

I use Visual Studio 2015 Ultimate, I wrote some unit test (I use xUnit 2.1.0.3179, it allow for this signature): public async Task MyTest() instead of standard unit test signature public void My...

Show Detail

Visual Studio 2015 automated tests with TFS 2012

We are in the process of upgrading from TFS to 2012 to TFS 2015, however the test team is ready to move to Visual Studio 2015 automated tests. They currently have a number of VS 2012 automated tests

Show Detail

Visual Studio 2015 MSTest - Crashes and not discovering tests

Today I switched from Visual Studio 2013 to Visual Studio 2015 and I am since experiencing problems with running unit tests developed in MSTest. I am working on a solution with 4 projects and 4 test

Show Detail

Visual Studio 2015 Emulator for Android not visible for debugging

I recently started working with visual studio 2015, and I wanted to test the new features. I have vs2015 with vs emulator installed. i can start an emulator and it starts up fine. adb.exe says ther...

Show Detail

MFC Toolbar icon not visible in Visual Studio 2015

We have MFC Application and it has Toolbar, Toolbar use bmp 32 colors resource file in Visual Studio 2010. This application runs fine in VS2010. After converting this application in Visual Stu...

Show Detail

Can I add NUnit 3 tests to Visual Studio 2015 load tests?

I have a testing automation framework written in C# with unit tests written in NUnit (not MSTest). I created a new Visual Studio Load Test configuration and I was expecting to be able to add these ...

Show Detail

Visual Studio 2015 or 2017 does not discover unit tests

EDIT 2016-10-19: The original question was about an issue specific to VS2015 CTP6 with the XUnit test runner. It's clear from the answers that there is a much broader issue with unit test discover...

Show Detail

Profiling tests in Visual Studio Community 2015

Posts on the web suggest that you can profile tests in Visual Studio by right-clicking and selecting "Profile Test": http://adamprescott.net/2012/12/12/performance-profiling-for-unit-tests/ But I ...

Show Detail

How do I generate "Smart Unit Tests" with Visual Studio 2015 Preview?

How do you generate "Smart Unit Tests*" with Visual Studio 2015 Ultimate Preview? *Microsoft's S. Somasegar announced "Smart Unit Tests" (Under the heading 'productivity') for Visual Studio 2015. ...

Show Detail