什么是“加载播放列表开始"?在 Visual Studio 中是什么意思? [英] What does "Load Playlist started" mean in Visual Studio?

查看:40
本文介绍了什么是“加载播放列表开始"?在 Visual Studio 中是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将我的解决方案加载到 Visual Studio 中时,我在输出"窗口中看到以下内容:

When I load my solution into Visual Studio, I get the following in the Output window:

------ Load Playlist started ------
========== Load Playlist finished (0:00:00.0030077) ==========

这是什么意思?

推荐答案

从 Visual Studio 2012 Update 2 开始,您可以在测试资源管理器中创建一个包含现有单元测试子集的播放列表.(在 VS2012 Update 2 之前,您只能使用 Traits 将它们组合在一起.)

Starting with Visual Studio 2012 Update 2 you can create a Playlist in the Test Explorer that consists of a subset of your existing unit tests. (Before VS2012 Update 2 you could only use Traits to sort of group them together.)

当您只想运行在给定逻辑上下文中有意义且与您的项目或类结构不匹配的特定单元测试时,基本上需要播放列表.然后将播放列表保存在 .playlist 文件中.

A Playlist is essentially needed when you only want to run specific unit tests that make sense in a given logical context which doesn't match your project or class structure. Playlists are then saved in .playlist files.

如果您启动 VS,它将尝试加载任何输出您发布的消息的播放列表.在我的情况下,如果我打开了测试资源管理器"窗口,VS 只会显示此消息,但我不知道是否还有其他条件可以触发播放列表的查找.因此,如果测试资源管理器未打开,则我不会收到您的 Load Playlist started 消息.

If you start VS it will try to load any Playlists which outputs the message you posted. In my case VS only shows this message if I have the Test Explorer window open but I don't know if there are other criteria that can trigger the lookup of the Playlists. So if Test Explorer isn't open then I don't get your Load Playlist started message.

加载播放列表后,VS 通常会尝试发现实际的单元测试,您会在输出"窗口中看到类似以下消息:

After loading the Playlists VS usually tries to discover the actual unit tests and you get something like this message in the Output window:

------ Discover test started ------
========== Discover test finished: 534 found (0:00:01,6890966) ==========

如果您还没有使用过播放列表,则可以阅读有关它们的更多信息此处.

If you haven't used Playlists before you can read more about them here.

这篇关于什么是“加载播放列表开始"?在 Visual Studio 中是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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