그래서 다른 프로그램에서 다음과 같이 명령 "vstest.console.exe"로 실행되는 NUnit 3.2.1로 컴파일 된 테스트의 DLL이 있습니다.동일한 저장소에 nunit.framework.dll이없는 NUnit 테스트 실행
var Args = "/UseVsixExtensions:true" + " " + "\"" + @"D:\path\myDllTestNunit.dll" + "\"" +
" " + "/TestAdapterPath:" + "\"" + @"C:\path\NUnit3TestAdapter.3.0.10\lib" + "\"" +
" " + "/Logger:trx" + " /settings:" + "\"" + @"D:\pathRunsettings\dbci_2016_06_23_10_01_56.runsettings" + "\"";
var cmdPath = @"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe";
var proc = new Process();
proc.StartInfo.FileName = cmdPath;
proc.StartInfo.Arguments = Args;
proc.StartInfo.RedirectStandardOutput = true;
proc.StartInfo.RedirectStandardError = true;
proc.EnableRaisingEvents = true;
proc.StartInfo.CreateNoWindow = false;
proc.ErrorDataReceived += proc_DataReceived;
proc.OutputDataReceived += proc_DataReceived;
proc.StartInfo.UseShellExecute = false;
proc.Start();
proc.BeginErrorReadLine();
proc.BeginOutputReadLine();
proc.WaitForExit();
Console.ReadLine();
내 문제는 내가 그 명령하지만, 같은 디렉토리에 nunit.framework.dll없이 내 테스트를 실행할 것입니다. (여전히 같은있어, 이미 마지막 버전이 너무 NUnit과 어댑터와 노력) 나는 GAC에서이 하나를 넣어 시도했습니다하지만 난 여전히 다음과 같은 오류가있어 :
>>> Starting test execution, please wait...
>>> Information: NUnit Adapter 3.0.10.0: Test execution started
>>>
>>> Information: Running all tests in D:\appli\statro\RSS3_BATCHES_TEST\UT\LANCE
MENT_TESTS\RSS3.Batches.Test.Nunit.Tests.dll
>>>
>>> Warning: Dependent Assembly nunit.framework of D:\appli\statro\RSS3_BATCHES_
TEST\UT\LANCEMENT_TESTS\RSS3.Batches.Test.Nunit.Tests.dll not found. Can be igno
red if not a NUnit project.
>>>
>>> Information: NUnit Adapter 3.0.10.0: Test execution complete
>>>
>>> Warning: No test is available in D:\appli\statro\RSS3_BATCHES_TEST\UT\LANCEM
ENT_TESTS\RSS3.Batches.Test.Nunit.Tests.dll. Make sure that installed test disco
verers & executors, platform & framework version settings are appropriate and tr
y again.
그래서, 긴 이야기 짧은이다 동일한 디렉토리에서 nunit.framework.dll을 사용하지 않고 nunit 테스트의 내 dll을 시작할 수 있습니까? 감사합니다.
* 왜 *할까요? 테스트 어셈블리는'nunit.framework.dll'을로드 할 수있을 것으로 기대합니다 ... 간단합니다. –
글쎄,이 테스트를 여러 dll로 여러 디렉토리에서이 명령을 실행해야하며,이 테스트를 시작하기 위해 각 디렉토리에 nunit.Framework.dll을 설치하고 싶지 않습니다. 그래서 다른 곳으로 옮기고 싶습니다 (GAC를 시험해 보았습니다).하지만 참조가 찾을 수없는 것 같습니다. – neow
하지만이 테스트 어셈블리를 어떻게 구축하고 있습니까? 빌드 프로세스가 nunit.framework.dll을 포함하여 테스트 어셈블리의 모든 종속성을 자동으로 포함 할 것으로 기대합니다. –