清理 ReSharper 的 TestResults 文件?
我正在使用 ReSharper 4.5 在 VS2008 中执行 MSTest 单元测试。每次测试运行时,都会在此路径中创建文件:
testProjectFolder\bin\Debug\TestResults
How can I clean/delete those files from inside Visual Studio?
如果我无法从 Visual Studio 中删除它们,那么什么时候可以删除它们?
我看到 Visual Studio 的 Tools >选项>测试工具>>测试执行>测试结果管理>将旧测试结果的数量限制为...
,当您使用库存 VS 测试运行程序时,VS 似乎会遵守它。 ReSharper 似乎不支持该设置,而且我在 ReSharper 中没有看到类似的设置。那么,ReSharper 的 TestResults 文件只是在磁盘上不断增加?
I'm using ReSharper 4.5 to execute my MSTest unit tests in VS2008. With each test run, it's creating files in this path:
testProjectFolder\bin\Debug\TestResults
How can I clean/delete those files from within Visual Studio?
If I can't delete them from within Visual Studio, when can I expect them to be removed?
I see Visual Studio's Tools > Options > Test Tools > Test Execution > Test Results Management > Limit number of old Test Results to...
, and VS seems to honor it when you're using the stock VS test runner. ReSharper doesn't seem to honor that setting, and I don't see a similar setting in ReSharper. So, ReSharper's TestResults files just keep adding up on the disk?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
TestResults 文件夹本身不是 ReSharper 的产物,而是 MSTest 本身的产物。
这是一篇博客文章,介绍了一种管理方法 ,以及这里是关联的代码片段。
The TestResults folder in itself is not an artifact of ReSharper, but rather of MSTest itself.
Here's a blog post that describes one way of managing it, and here's the associated code snippet.
我发现最简单的方法是将以下构建后步骤添加到我的测试项目中:
I find the simplest way is to just add the following post-build step to my test project: