使用MSTest.exe作为测试运行程序的moles.runner.exe的使用

|| 当我执行moles.runner.exe并提供MSTest.exe作为运行程序时,我看到一个错误。 这是命令行:
moles.runner.exe MyAssembly.dll /r:MSTest.exe /args:/resultsfile:output.trx /args:/testcontainer:MyAssembly.dll
这是输出:
Microsoft Moles Runner v0.94.51023.0 -- http://research.microsoft.com/moles -- .NET v4.0.30319
Copyright (c) Microsoft Corporation 2007-2010. All rights reserved.

instrumenting...started
Microsoft (R) Test Execution Command Line Tool Version 9.0.30729.1
Copyright (c) Microsoft Corporation. All rights reserved.

Invalid switch \"MyAssembly.dll\"
For switch syntax, type \"MSTest /help\"
当我使用/ d(诊断模式)执行moles.runner.exe时,它显示如下:
r>MSTest.exe MyAssembly.dll /resultsfile:output.trx /testcontainer:MyAssembly.dll
如何将moles.runner.exe定向为不将程序集名称作为第一个参数传递给测试运行程序?     
已邀请:
不应使用/ args将测试容器指定为moles.runner.exe,即:
/args:/testcontainer:MyAssembly.dll
而是应使用/ afs(RunnerAssemblyFormatString)指定它,如下所示:
/afs:\"/testcontainer:{0}\"
这将指示moles.runner.exe在MSTest.exe必需的/ testcontainer参数中输出测试程序集。     

要回复问题请先登录注册