Visual Studio 2015单元测试IntelliTrace结果

时间:2016-08-31 14:03:26

标签: unit-testing visual-studio-2015 intellitrace

在Visual Studio 2015中,我会在哪里找到IntelliTrace为单元测试保存的结果?我在testsettings文件中检查了IntelliTrace,但无法确定我应该在哪里看到IntelliTrace捕获的内容。

我找到了一些像这个视频(https://www.youtube.com/watch?v=C6hl8txBGcc)的链接,但是"查看结果" VS2015中的窗口不显示单元测试的任何结果。

感谢您的帮助!

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:1)

首先,确保单元测试引擎使用您的测试设置文件。为此:

  1. 从工具栏中选择测试菜单。
  2. 测试设置 - > 选择测试设置文件
  3. 导航到您的文件并选择它。
  4. 现在,您可以运行测试。然后选择失败的测试。在详细信息中,您会在消息下方看到输出链接。点击它。

    enter image description here

    你应该看到类似的东西:

    enter image description here

    附件组框中,有IntelliTrace日志。

    您还可以在测试结果目录中找到IntelliTrace日志。默认情况下,它位于解决方案的根目录中。