Skip to content

Web project templates that ship in VS 2017 do not reference MSTest V2 nuget packages #167

@shyamnamboodiripad

Description

@shyamnamboodiripad

Description

LUT does not work out of the box for web projects with unit tests created using VS 2017. Considering that web projects are used a lot in enterprise and LUT is key selling points for VS Enterprise, LUT should work out of the box for new web projects with unit tests. But it doesn't currently.

Steps to reproduce

  1. Create C# (or VB) web application - "ASP.NET Web Application (.NET Framework)". You may need to install the appropriate willow workload to get Web projects.
  2. Check the "Add unit tests check box".
    image
  3. Turn on LUT (Test->Live Unit Testing->Start).

Expected behavior

LUT is started

Actual behavior

[17:48:58.018 Error] No test adapters are referenced by this solution. If you have a test project, add a NuGet reference to a test adapter corresponding to the test framework used in order to run the tests. If you already have the required NuGet reference in your test project, performing a NuGet restore may resolve the issue.
[17:48:58.021 Info] Start failed.
[17:48:58.029 Info] Live Unit Testing stopped.

Looks like project template for the created unit test project is still adding a reference to the old 'MS.VS.QualityTools.UnitTestFramework.dll' instead of 'MS.VS.TestPlatform.TestFramework' nuget packages.

Environment

VS Build: d15PreRel.26423.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions