调试所有单元测试 [英] Debug All Unit Tests

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

问题描述

我有一些测试只有在运行所有单元测试时才会失败.我想在测试程序集中选择所有的单元测试并调试它们.我看到一个全部运行"选项,但没有调试 所有选项.

I have some tests that are failing only when all of my unit tests are run. I'd like to select all of the unit tests in the test assembly and debug them. I see a Run All option, but no Debug All option.

界面似乎很尴尬,因为我无法全部显示"通过和失败的测试.我终于通过运行失败的测试来观察它们全部通过来解决这个问题.一旦它们全部被列为 通过",我可以全部选中它们,然后运行调试"选定的单元测试.

The interface seemed awkward because I couldn't "show all" passed and failed tests. I finally got around this by running the failed tests to watch them all pass. Once they all were listed as "passed", I could select them all and then run Debug selected unit tests.

新的单元测试浏览器让您感觉沉迷"了.从Visual Studio的早期版本开始.这对于基本任务非常有用.感觉很局限.我想念测试详细信息(针对通过的测试),并且 复制测试输出/结果.

The new Unit Test explorer feels "dumbed down" from the previous version of Visual Studio. It's great for basic tasks. It feels restricting. I miss seeing test details (for passed tests) and copying test output/results.

推荐答案

我完全同意,请参阅此帖子:

I am completely agree, see this post:

http://社交. msdn.microsoft.com/Forums/pl/vstest/thread/72c90fda-bda1-419f-a64a-5a014ef08bb0


这篇关于调试所有单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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