2011-05-04 2 views
2

MSTest.exe를 러너로 제공하는 moles.runner.exe를 실행할 때 오류가 발생합니다. I는/D (진단 모드) moles.runner.exe을 실행할 때MSTest.exe를 테스트 러너로 사용하는 moles.runner.exe의 사용

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" 

, 그것은 본 나타낸다 : 여기서

moles.runner.exe MyAssembly.dll /r:MSTest.exe /args:/resultsfile:output.trx /args:/testcontainer:MyAssembly.dll 

가 출력된다 : 여기

명령 라인

로 이동 moles.runner.exe 수있는 방법
r>MSTest.exe MyAssembly.dll /resultsfile:output.trx /testcontainer:MyAssembly.dll 

는로를 통과하지 테스트 러너의 첫 번째 인수로 준 이름?

답변

4

테스트 컨테이너 /인수, 즉와 moles.runner.exe을 지정할 수 없습니다한다 대신

/args:/testcontainer:MyAssembly.dll 

, 그것은 /AFS (RunnerAssemblyFormatString)로 다음과 함께 지정해야 : 출력에 MSTest.exe 필수/testcontain 내의 시험 재를 지시한다 moles.runner.exe

/afs:"/testcontainer:{0}" 

어 논증.

+0

내 인생을 살았습니다. 감사합니다. –

+0

도움이 되니 기쁩니다! –