如何使用单元测试来测试VSIX项目? [英] How can I test a VSIX project by using unit tests?

查看:57
本文介绍了如何使用单元测试来测试VSIX项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HostType不会启动Visual Studio实例,因为它已弃用,我找不到有关如何正确启动和测试扩展的任何正确信息。


$
在Visual Studio的YouTube频道上发现视频,但他们使用的是BDDfy:

https://youtu.be / 7POV7JjpHrs?t = 1383

HostType does not launch an instance of Visual Studio because it is deprecated, and I cannot find any proper information about how to properly launch and test an extension.

Found a video on Visual Studio's YouTube channel, but they are using BDDfy:
https://youtu.be/7POV7JjpHrs?t=1383

[HostType("VS IDE")]
[TestMethod]
public void DummyMethod()
{
  System.Console.WriteLine("Hello");
}

非常感谢任何帮助或指导。

Any help or guidance is greatly appreciated.

推荐答案

您可以使用
VisualStudio-TestHost

VsixTesting
测试VSIX项目。
You can use VisualStudio-TestHost and VsixTesting to test a VSIX project.


这篇关于如何使用单元测试来测试VSIX项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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