MSTest-如何限制测试结果文件夹 [英] MSTest - How to limit test result folders

查看:61
本文介绍了MSTest-如何限制测试结果文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次运行MSTest时,它都会在TestResults内部创建一个新的带时间戳的文件夹.这可能导致许多文件/文件夹占用硬盘驱动器空间.

Every time an MSTest runs it creates a new time stamped folder inside of TestResults. This can result in many files/folders that take up hard drive space.

是否可以将MSTest配置为覆盖TestResults文件夹的内容,以便仅包含最近一次运行的结果?

Is there a way to configure MSTest to overwrite the contents of the TestResults folder so that is only contains results from the most recent run?

推荐答案

您可以将存储的测试运行次数限制为1,这应该满足您的要求.

You can limit the number of stored test-runs to 1, which should meet your requirements.

MSDN上有一篇文章有关如何实现此目标的方法:

MSDN have an article on how to achieve this:

  • 在Visual Studio中,单击工具菜单上的选项.
  • 出现选项"对话框.
  • 展开测试工具 Web性能测试工具,然后单击测试执行
  • 在测试结果管理"下,选择要运行的测试次数 保持.
  • 单击确定".
  • In Visual Studio, click Options on the Tools menu.
  • The Options dialog box appears.
  • Expand Test Tools or Web Performance Test Tools and click Test Execution
  • Under Test Results Management, select the number of test runs to keep.
  • Click OK.

这篇关于MSTest-如何限制测试结果文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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