[UWP] [VB]单元测试:什么版本&版本可用吗? [英] [UWP][VB]Unit Testing: What versions & editions is it available in?

查看:78
本文介绍了[UWP] [VB]单元测试:什么版本&版本可用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

直到最近,我才真正尝试过单元测试,但我似乎无法让它工作。我正在使用Visual Studio 2017社区& Visual Studio 2015社区(取决于具体的解决方案)。我已经安装了MSTest.TestAdapter
1.1.14和MSTest.TestFramework 1.1.14 NuGet包。我知道Live Unit Testing仅在Visual Studio 2017 Enterprise中可用,但我似乎无法在任何版本或版本中使用任何类型的单元测试。我听说过一些关于
不同单元测试功能的东西只在某些版本中可用,Visual Studio 2015社区中有哪些(如果有的话)单元测试可用。 Visual Studio 2017社区,以及(如果有的话)社区版本中有单独测试的优秀教程,特别是
,这意味着他们提到社区版本中没有可用的东西以及我们有什么(如果有的话)可以做替代?谢谢。



Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/

解决方案

< blockquote>

您好


 



祝福,


Fletch






I have never really tried to do much with Unit Testing until recently, but I can't seem to get it to work. I am using Visual Studio 2017 Community & Visual Studio 2015 Community (depending on the specific Solution). I have installed the MSTest.TestAdapter 1.1.14 and MSTest.TestFramework 1.1.14 NuGet packages. I understand that Live Unit Testing is available only in Visual Studio 2017 Enterprise, but I can't seem to get any kind of Unit Testing to work in any version or edition. I have heard some stuff about different Unit Testing capabilities being available only in some versions, what (if any) kinds of Unit Testing are available in Visual Studio 2015 Community & Visual Studio 2017 Community, and (if any) are there any good sites with good tutorials specifically for Unit Testing in the Community versions, meaning they mention when something is not available in the Community versions and what (if anything) we can do as an alternative? Thanks.


Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/

解决方案

Hi Nathan Sokalski,

 

Thanks for your post!

 

VS 2015 Community and VS 2017 Community, both versions support Unit Test. There is no Unit Test project template in your VS project creation dialog, because you had not selected Unit Test items when VS installed.

 

The following links provides a feature comparison between the editions. Go to the Testing tools section, which specifies the availability of Unit Testing in the specific editions:

https://www.visualstudio.com/vs/compare/

 

To install optional compents:

Open Microsoft Visual Studio Installer->choose vs->Click options icon->choose Modify->choose the unit test components that you want to install(this is for vs 2017)

Open Control Panel->Programs and Features->choose vs->change->Modify->choose the unit test components that you want to install(this is for  vs2015)

In addition, this link described how to creating and running unit test:

https://msdn.microsoft.com/en-us/library/ms182532.aspx

 

Best regards,

Fletch


这篇关于[UWP] [VB]单元测试:什么版本&amp;版本可用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆