调试所有单元测试

编程入门 行业动态 更新时间:2024-10-24 22:27:29
本文介绍了调试所有单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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 Debugselected 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:

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

更多推荐

调试所有单元测试

本文发布于:2023-10-31 05:04:30,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1545085.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:单元测试

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!