我正在使用“ VS 2017,版本15.9.12”,我正在使用单元测试项目,但是当前当我调试测试时,IDE始终在“ .... \ TestResults \ testuser_notebook1065 2019- 06-11 09_23_41 \ Out \ chromedriver.exe”文件夹。已经阅读此线程:How to make unit test run in bin folder
并创建了一个.testsettings文件,如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<TestSettings name="Buildserver" id="a31724c1-140a-435b-a39d-dff082acb2af" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<Description>These are default test settings for a local test run.</Description>
<Deployment>
<DeploymentItem filename="..\..\..\Facelift\Binaries\SystemTestsFacelift\" />
</Deployment>
<Execution>
<TestTypeSpecific>
<UnitTestRunConfig testTypeId="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b">
<AssemblyResolution>
<Directory Path="D:\Builds\Facelift\Binaries\SystemTestsFacelift" includeSubDirectories="true" />
</AssemblyResolution>
</UnitTestRunConfig>
</TestTypeSpecific>
<AgentRule name="Execution Agents">
</AgentRule>
</Execution>
</TestSettings>
在IDE中更改了以下设置:
想要将正在运行的文件夹更改为“ ... \ Tests \ SystemTestsFacelift \ bin \ Debug”-
感谢您的帮助!