Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
shyamnamboodiripad opened this issue Apr 26, 2017 · 8 comments

Comments

@shyamnamboodiripad
Copy link

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

@shyamnamboodiripad
Copy link
Author

Related to #132

@shyamnamboodiripad
Copy link
Author

Not sure if we have more templates that suffer from this issue. Will you be reviewing all existing unit test templates that ship in VS 2017 and move all of them over to the v2 nuget packages?

@AbhitejJohn
Copy link
Contributor

Thanks for filing this. AFAIK there aren't any others. We might want to check if F# has a UT template too.

@jayaranigarg
Copy link
Member

Filed a bug on Web Templates team here to track this.

@ManishJayaswal
Copy link

@AbhitejJohn we should probably keep this issue open to track the fix in the internal bug db and close it it once it is fixed.

@AbhitejJohn
Copy link
Contributor

@ManishJayaswal : Thought the internal bug could be used. I can leave this open if it makes things more clear.

@ManishJayaswal
Copy link

@AbhitejJohn thanks! This helps folks from community who are tracking this issue.

@jayaranigarg
Copy link
Member

This has been fixed in 15.3 latest Preview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants