Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/unit-testing/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unit testing 清洁再研磨器';什么是测试结果文件?_Unit Testing_Visual Studio 2008_Resharper_Temporary Files - Fatal编程技术网

Unit testing 清洁再研磨器';什么是测试结果文件?

Unit testing 清洁再研磨器';什么是测试结果文件?,unit-testing,visual-studio-2008,resharper,temporary-files,Unit Testing,Visual Studio 2008,Resharper,Temporary Files,我正在使用ReSharper 4.5在VS2008中执行MSTest单元测试。每次测试运行时,它都会在以下路径中创建文件: testProjectFolder\bin\Debug\TestResults 如何从Visual Studio中清理/删除这些文件 如果我不能从VisualStudio中删除它们,我希望什么时候删除它们 我看到VisualStudio的工具>选项>测试工具>测试执行>测试结果管理>将旧测试结果的数量限制为…,当您使用stock VS Test runner时,VS似乎尊

我正在使用ReSharper 4.5在VS2008中执行MSTest单元测试。每次测试运行时,它都会在以下路径中创建文件:

testProjectFolder\bin\Debug\TestResults
如何从Visual Studio中清理/删除这些文件

如果我不能从VisualStudio中删除它们,我希望什么时候删除它们


我看到VisualStudio的
工具>选项>测试工具>测试执行>测试结果管理>将旧测试结果的数量限制为…
,当您使用stock VS Test runner时,VS似乎尊重这一点。ReSharper似乎不尊重这种设置,我在ReSharper中也没有看到类似的设置。因此,ReSharper的TestResults文件在磁盘上不断累积?

TestResults文件夹本身不是ReSharper的工件,而是MSTest本身


这里有一个,和。

我发现最简单的方法就是将以下构建后步骤添加到我的测试项目中:

IF EXIST "$(TargetDir)TestResults" RD /S/Q "$(TargetDir)TestResults"

在VS 2010中不起作用。TestResults文件夹不在代码段预期的位置,而是在bin/debug或bin/release下。在这种情况下,您只需编辑代码段,使其指向“bin\debug\TestResults”,而不是“.\TestResults”--或者更好的是指向“bin\$(配置)\TestResults”。